a few more comments in the source.

removed unnecessary transport looping.
This commit is contained in:
Yotam Mann 2014-06-24 12:21:25 -04:00
parent 1e1842c28b
commit 92acbf94c5

View file

@ -73,6 +73,7 @@
$("#checkboxes").append("<br>");
}
//called when the start button is clicked
function startTransport(){
if (Tone.Transport.state === "started"){
Tone.Transport.stop();
@ -102,6 +103,7 @@
stepNumber = stepNumber % 16;
}
//show the current beat on the radio buttons
function selectRadio(stepNumber){
//unselect the previous one
var prev = stepNumber - 1;
@ -120,10 +122,6 @@
//the interface
makeRadios();
makeCheckboxes();
//set the loop points
Tone.Transport.loop = true;
Tone.Transport.setLoopStart("0:0");
Tone.Transport.setLoopEnd("1:0");
Tone.Transport.setBpm(120);
});