/** "livecode" * (cc) 2006 douglas edric stanley * http://creativecommons.org/licenses/by/2.5/ * This work is licensed under the Creative Commons Attribution2.5 License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA. */ void setup() { size(256,512); background(255); noSmooth(); midiInit(); visualsInit(); cursorInit(); textInit(); } void draw() { visualsDraw(); textRedraw(); cursorLoops(); } void keyPressed() { textKey(); } void mousePressed() { textPressed(); } void mouseDragged() { textDragged(); } void mouseReleased() { textReleased(); } // turn off midi notes when finished public void stop(){ synth.close(); }