winsound.Beep() chooses not to play notes below a certain length
I'm making "music" "software" that iterates through two lists; one for the note frequencies and one for the note lengths (in milliseconds). For example, if I was trying to play "Hot Cross Buns", it would look like this: C, D, E, F, G, A, B = 262, 294, 330, 349, 392, 440, 494 r = 'r' def rest(n): time.sleep(n/1000) hotcrosN = [B, A, G, r, B, A, G, r, G, G, G, G, A, A, A, A, B, A, G, r] hotcrosL = [555, 555, 555, 555, 555, 555, 555, 555, 277, 277, 277, 277, 277, 277, 277, 277, 555, 555, 555, 555] Then I have code that iterates through the list and plays the sounds: def gamebuns(): for i in range
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.