0 => int deviceNum; Hid hi; HidMsg msg; if( !hi.openMouse( deviceNum ) ) me.exit(); SubNoise sn => blackhole; Step s => dac; .5 => s.gain; 1::samp => dur d; fun void sound() { while(d => now) { sn.last() => s.next; } } spork ~ sound(); while(true) { hi => now; while( hi.recv( msg ) ) { if( msg.isMouseMotion() ) { if( msg.deltaX ) { d + (msg.deltaX * .1::samp) => d; if (d < 1::samp) 1::samp => d; } else if( msg.deltaY ) { d + (msg.deltaY * 2::samp) => d; if (d < 1::samp) 1::samp => d; } } else if( msg.isButtonDown() ) { 1::samp => d; } } }