processing-sound-archive
processing-sound-archive copied to clipboard
Env doesn't free previous ID's with Oscillators
This Code fails:
// Will always stop at frameCount = 341 // with error: // libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: No free ids
import processing.sound.*;
SinOsc sinOsc; Env env;
void setup() { size(500, 500); sinOsc = new SinOsc(this); env = new Env(this); }
void draw() { background(0); sinOsc.play(random(20, 880), 1.0); env.play(sinOsc, 0.001, 0.004, 0.3, 0.4); println(frameCount); }
I get this error also, but not with SinOsc. I'm using Processing 3.0b2 sketch and sound 1.2.1 (1.3 fails to run at all). I load in about 70 SoundFile objects and play them multiple times according to interactive input. After several hundred sound file plays, the program crashes with the same message. Just before the crash are messages like:
ERROR: /node/set: Synth 4344 not found
ERROR: /node/set: Synth 4344 not found
ERROR: /node/free: Node 4344 not found