Skip to content

Instantly share code, notes, and snippets.

@davidgranstrom
Created October 28, 2012 11:43
Show Gist options
  • Save davidgranstrom/3968399 to your computer and use it in GitHub Desktop.
Save davidgranstrom/3968399 to your computer and use it in GitHub Desktop.
step sequencer
(
s.waitForBoot {
~steps = 16;
~dur = 0.2;
~root = 349.22823;
~ratios = Plazy {
var x = Scale.minor(\just).ratios.scramble.keep(3);
(~root*x).debug("sequence");
Pseq(x,inf);
};
Pbind(
\freq, ~root * Pn(Pfinval(~steps, ~ratios)),
\amp, 0.2,
\legato, 0.3,
\dur, ~dur
).trace(\freq).play;
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment