I was trying to make music by purely using python's winsound module. However, almost every single pitch (frequency) pulsates. A few that doesn't are like A 440 or anything higher than around 2000 hertz. Is this just how winsound works or is this just my pc because the same problem occurred when I tried this on my friend's pc. It even happened when I played it through a guitar amp.
And here is a piece of my coding, ... Note: I am trying to make a tuner for my piano.
Just play the notes in order.
import winsound
while True:
octv = input("Enter 4: ")
octv.strip()
octv = int(octv)
press = input("Press a note: ")
press.lower()
press.strip()
if octv == 4:
if press == "c":
winsound.Beep(262, 5000)
elif press == "d":
winsound.Beep(294, 5000)
elif press == "e":
winsound.Beep(330, 5000)
elif press == "f":
winsound.Beep(349, 5000)
elif press == "g":
winsound.Beep(392, 5000)
elif press == "a":
winsound.Beep(440, 5000)
elif press == "b":
winsound.Beep(494, 5000)