Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Simple Amplitude Tracker (language side)
name
code content
( // 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'); )
code description
It's jsut an amplitude tracker, to exaplin how to send values from scsynth to sclang.
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change