Created
January 23, 2014 15:49
-
-
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.
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 = 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