//create & connect a sampler to output. at a minimum, sampler requires a
//path to a file to play. the file must be hosted on the same domain and accessed
//using the same protocol & port as the document requesting it.
__().
sampler({path:"../../data/various/gun-cock.wav"}).
dac();
__("sampler").start();
//same as above but looping
__().
sampler({path:"../../data/various/gun-cock.wav",loop:"true"}).
dac();
__("sampler").start();
//same as above but at 1/4 speed
__().
sampler({
path:"../../data/various/gun-cock.wav",
loop:"true",
speed:.25
}).
dac();
__("sampler").start();
//same as above but with specified loop points
__().
sampler({
path:"../../data/various/gun-cock.wav",
loop:"true",
speed:.25,
start:.1,
end:0.25
}).
dac();
__("sampler").start();