helo guys!!
i am running the following example from http://www.erase.net/projects/processing-sc/examples/buffer_write
i am running the following example from http://www.erase.net/projects/processing-sc/examples/buffer_write
import supercollider.*; import java.util.ArrayList; import ddf.minim.*; Buffer buffer; AudioPlayer song; void setup () { buffer = new Buffer(2); buffer.read("/Users/daniel/audio/samples/acoustic/piano-chord.aif", this, "done"); } void done (Buffer buffer) { println("Buffer loaded."); println("Channels: " + buffer.channels); println("Frames: " + buffer.frames); println("Sample Rate: " + buffer.sampleRate); } void mousePressed() { buffer.write("/tmp/test.aif", "aiff", "int16", this, "written"); } void written (Buffer buffer) { println("Buffer written to disk"); /// THIS IS WHERE THE PROBLEM APPEARS ///
Minim.start(this); song = Minim.loadFile("/tmp/test.aif"); song.play(); } void draw() { background(0); stroke(255); // shamelessly taken from an example found here: // http://code.compartmental.net/tools/minim/manual-audiosource/ if (song != null) { for (int i = 0; i < song.bufferSize() - 1; i++ ) { float x = height/4 - song.left.get(i)*50; float y = height/4 - song.left.get(i+1)*50; line(i, x, i+1, y); x = 3*height/4 - song.right.get(i)*50; y = 3*height/4 - song.right.get(i+1)*50; line(i, x, i+1, y); } } }
IT SAYS THE FUNCTION START(BUFFER_WRITE) DOES NOT EXIST.
i really have NO IDEA what the problem might be... (i am pretty new in programming)
any help please??
thank you in advance! :)
1