Created
March 24, 2011 17:09
-
-
Save automata/885442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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