Skip to content

Instantly share code, notes, and snippets.

@mxjxn
Created April 9, 2012 00:12
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 mxjxn/2340474 to your computer and use it in GitHub Desktop.
Save mxjxn/2340474 to your computer and use it in GitHub Desktop.
Supercollider Random Sine Wave Drone Experiment
(
// every time you run this it will sound slightly different.
var d_def = SynthDef( 'drone1',
{|freq = #[50,100,175], out=#[0,1]|
// four random frequency rates, distributed [L, R, L, R]
// amplitudes also oscillating with random Hz values between 0.1 and 0.4
var synth = SinOsc.ar([50.rrand(200),50.rrand(100),50.rrand(100),75.rrand(125)],
0,
{0.1.rrand(0.4)*LFPar.kr(0.1.rrand(1.6),0,1)}!4);
Out.ar(out, Mix(synth));
}).add;
var d_1 = d_def.play(s);
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment