Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Sound only working the first time a sketch is run #23
Comments
|
Another example of code which works perfectly well. Only reason this is noteworthy is that if the mouse is clicked, then released, then clicked again, the program works as intended, with the sound stopping and starting as it should. It's only when the sketch is closed and then run again without closing and re-opening the whole processing environment that there is an issue.
|
|
This issue sounds very similar to #10, which makes me think there's a problem with how Java libraries are handled in Python mode more generally, and in particular how that affects external resources such as sound cards or libraries performing work in separate threads. I therefore suggest you open an issue over at https://github.com/jdf/Processing.py-Bugs/issues |
Hi, I have a weird problem with sound in processing.py, I'm not sure if it's a bug or if I'm doing something wrong, but I've had a look around and can't find anyone else mentioning it.
When I first open a sketch, it works perfectly as intended, I hear a nice beating tone. However if I exit and then run the program again, no sound is ever heard. It only works again if I close and reopen processing, regardless of any changes made or not made to the code, ie: making it interactive or anything works perfectly fine so long as it's the first time the sketch has been run.
TL;DR: sound is only audible the first time running a sketch every time processing is opened
Any help greatly appreciated, thanks.