Jason (jcreed) wrote,

Meant to do Just One Quick Thing in supercollider before heading out to breakfast to see if could get the latency lower. I can get the jackd latency down to 11ms (from 41ms) by just making the buffer size smaller, but then it starts skipping and clicking occasionally. Maybe if I sudo it and it gets real-time priorty it might go better.

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.
	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) );

Sound: http://soundcloud.com/jcreed/resonance-filter-experiment
Tags: supercollider

  • (no subject)

    After getting home from work immediately appeared to be a traintastrophe in the making, went to see Esther Schor talk about her book "Bridge of…

  • (no subject)

    Went to a series of maker-y talks hosted by Pivotal. The last one, by the woman who runs Genspace, "New York City's Community Biolab" was pretty…

  • (no subject)

    I had already been meaning to dig into JaneSt's "Incremental" library, which bills itself as a practical implementation (in ocaml) of the ideas in…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded