Skip to content

Instantly share code, notes, and snippets.

@colinbdclark
Created January 23, 2014 15:49
Show Gist options
  • Save colinbdclark/8580936 to your computer and use it in GitHub Desktop.
Save colinbdclark/8580936 to your computer and use it in GitHub Desktop.
An example of playing two audio buffers at the same time, one in each channel.
var synth = flock.synth({
synthDef: [
{
ugen: "flock.ugen.playBuffer",
buffer: {
id: "chord",
url: "../../shared/audio/hillier-first-chord.wav"
}
},
{
ugen: "flock.ugen.playBuffer",
buffer: {
id: "hockey",
url: "../../shared/audio/hockey.aiff"
},
mul: 0.1
}
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment