Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
chirp
(
Ndef('chirps', {
var dyn, amp, freq, hasFreq, snd;
dyn = LocalIn.ar(2).reverse;
amp = RMS.ar(dyn, 500);
#freq, hasFreq = Pitch.kr(dyn, 200).flop;
snd = SinOscFB.ar(freq.lag([0.01, 0.1]) + [100, LFNoise2.kr(10, 1000, 1000)], 2-amp) * (1-RMS.ar(SoundIn.ar(0), 1000));
LocalOut.ar(snd);
snd
});
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment