Skip to content

Instantly share code, notes, and snippets.

@automata
Created March 24, 2011 17:09
Show Gist options
  • Save automata/885442 to your computer and use it in GitHub Desktop.
Save automata/885442 to your computer and use it in GitHub Desktop.
var synth = new Synth(audiolet);
var metaPattern = new PProxy(new PSequence([440, 660], Infinity));
var metaDuration = new PProxy(new PSequence([0.5, 1], Infinity));
audiolet.scheduler.play([metaPattern], metaDuration,
function (foo) {
synth.saw.frequency.setValue(foo);
});
synth.connect(audiolet.output);
metaPattern.pattern = new PSequence([220, 440, 660, 440], Infinity);
metaDuration.pattern = new PSequence([0.25, 0.5, 1, 0.25], Infinity);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment