Anyway, I got sucked back into fiddling around with other stuff for the next hour and a half. I got audio input working from the microphone, and made it so that every MIDI key created a little resonance filter with its own frequency.
This way I can play a chord with the sustain pedal down and then just tap or scrape on my desk where the mic is and the noise from the tapping "plays" that chord. It's really fun to have inert objects suddenly feel like interfaces.
Code:
SynthDef(\orgn, { arg freq, amp, gate = 1; var i = SoundIn.ar(0); var e = EnvGen.ar(Env.adsr(0.01,0.1, 0.2, 0.2), gate, doneAction: 2); Out.ar([0,1], e * 2 * Resonz.ar(i, freq, 0.01) ); }).send(s);
Sound: http://soundcloud.com/jcreed/resonance-filter-experiment