No module winsound

import winsound
not working
(but in IDLE it works)

Python Mode’s reference:
is about Processing’s API (mostly the PApplet class) w/ some of the basic Python’s API & syntax. :snake:

Notice that Python Mode is based on Jython, which is run by Java’s VM:

Jython can import any Java library, plus a limited range of Python libraries: :coffee:

import processing.sound.*;

How do I use this syntax?

That is Java’s syntax, not Python’s! :roll_eyes:

Python Mode relies on add_library() in order to import Processing’s 3rd-party libraries: add_library('sound')

1 Like

thx, didnt know about that

I suggest installing the BEADS library, in Java, and read the “Evan Merz tutorial”. Works nicely with


1 Like