loop
by Wangshu Sun
HTML
<button id = "double">
double time
</button>
<button id="half">
half time
</button>
JavaScript
var synth0 = new Tone.SimpleSynth().toMaster();
var synth1 = new Tone.SimpleSynth().toMaster();
var loop0 = new Tone.Loop(function(when){
synth0.triggerAttackRelease("C4")
}, 0.5).start(0);