Open nikhilCad opened 3 years ago
As per this, winsound does not seem to support this. But this should be a basic feature for piano
Using pygame is best option, if you want to do it. Feel free to ignore.
Yes, pygame should work, I haven't tried because I was just testing the code and also the real piano also cuts the sound, I guess, not sure.
Also, adding a time delay of 0.5 seconds should work too.
Also, adding a time delay of 0.5 seconds should work too.
Not exactly, all it does is prevent users from spamming keys on the keyboard. Multiple sounds are simply not supported in winsound
Ok, I will better use pygame.
When you start typing keys like crazy, the audio files cut each other. You should play all keystroke till their end instead of cutting the audio play in between.