Skip to content

Instantly share code, notes, and snippets.

View ckmahoney's full-sized avatar
🐱

Cortland Mahoney ckmahoney

🐱
  • 23:06 (UTC -05:00)
View GitHub Profile
@iani
iani / SC_detect_silence
Created June 29, 2013 11:34
How to use DetectSilence in SuperCollider to start a new sound when another sound falls below a certain amplitude level. Here we use AllpassC to add a reverb on the tail of the sound that we are tracking.
(
SynthDef("releaser", { | gate = 1 |
var env;
env = Env([0, 1, 0], [0.04, 6.0], releaseNode: 1);
Out.ar(0, WhiteNoise.ar(1) * EnvGen.kr(env, gate, doneAction: 2))
}).add;
)