Skip to content

Instantly share code, notes, and snippets.

@tedthetrumpet
Created June 17, 2016 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedthetrumpet/a71d88b268d3bc2125242552dc1fd254 to your computer and use it in GitHub Desktop.
Save tedthetrumpet/a71d88b268d3bc2125242552dc1fd254 to your computer and use it in GitHub Desktop.
For fun, layering this over the top of the Sheffield Algorave stream going on right now
(
Ndef(\formant, { |freq = 261.6255653006, formfreq = 463, bwfreq = 200, gate = 1, amp = 0.1|
var env = EnvGen.kr(Env.adsr(), gate, doneAction:2);
var sig = Formant.ar(freq * ((-1..1)/500 + 1), formfreq * env.range(0.01,2), bwfreq);
sig = sig * env;
sig = Splay.ar(sig)
})
)
Ndef(\formant).play
Ndef(\formant).set(\freq, 30.midicps)
Ndef(\formant).map(\formfreq, Ndef(\l))
Ndef(\formant).map(\freq, Ndef(\l2))
Ndef(\l, {LFNoise1.kr(1/10).range(300,1000)})
Ndef(\l2, {LFNoise0.kr(4).range(30.midicps,55.midicps)})
Ndef(\formant).stop(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment