mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 03:53:07 +00:00
a few more comments in the source.
removed unnecessary transport looping.
This commit is contained in:
parent
1e1842c28b
commit
92acbf94c5
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue