[Tutor] how to play arrays as audio signal

Jacob S. keridee at jayco.net
Fri Oct 22 02:10:32 CEST 2004


    If you're just trying to sound off notes at particular frequencies, and
you're on Windows, I can help you. Else, I can't.

>>> import winsound
>>> frequency = 440
>>> length = 1000  # This is in thousands of a second
>>> winsound.Beep(frequency, length)

Hope this helps, as always,
Jacob Schmidt

More information about the Tutor mailing list