Skip to content

Instantly share code, notes, and snippets.

Created October 9, 2014 20:22
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 anonymous/296fc95c4eefec98bd78 to your computer and use it in GitHub Desktop.
Save anonymous/296fc95c4eefec98bd78 to your computer and use it in GitHub Desktop.
sc/shepard.sc
s.boot;
(
{|freq=55, period=5|
var mod, am;
mod = EnvGen.kr(Env.linen(period, 0, 0, 1).circle);
am = [mod, 1, 1, 1, 1, 1, 1, 1 - mod];
({arg i;
var f = freq * (2**(i+mod));
BPF.ar(
SinOsc.ar(f, mul: 1/8*am[i]),
f, 0.8);
} ! 8).sum ! 2;
}.freqscope;
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment