«Simple Amplitude Tracker (language side)» by rukano
on 21 Oct'13 12:41 inIt's jsut an amplitude tracker, to exaplin how to send values from scsynth to sclang.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
( // Simple amplitude tracker sending values to sclang SynthDef(\ampTracker, { |in| var freq = 30; // num of values per second SendReply.kr(Impulse.kr(freq), '/amp', Amplitude.kr(SoundIn.ar(in))); }).add; ) // start the tracker on scsynth Synth(\ampTracker); ( // receive the values in sclang OSCdef(\ampTracker, { |m| m.postln; // now use m[3] for your purpose (detecting changes, etc...) }, '/amp'); )
reception
comments