From 55f35daee6e3fdb740e07394a820a5ead771fed8 Mon Sep 17 00:00:00 2001 From: Jason Sigal Date: Mon, 23 Jun 2014 17:06:55 -0400 Subject: [PATCH] adding stepSequencer example (cleanup) --- examples/stepSequencer.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/stepSequencer.html b/examples/stepSequencer.html index 16edd04b..91b56a15 100644 --- a/examples/stepSequencer.html +++ b/examples/stepSequencer.html @@ -8,7 +8,7 @@ -
Checkbox Step Sequencer. 1 bar loop. Each box is a 16th note.
+
One Measure Step Sequencer. Each box is a 16th note, so the 5th checkbox = 0:1:0

0:0:0
@@ -21,7 +21,7 @@ Tone.Transport.loop = true; Tone.Transport.setLoopStart("0:0"); Tone.Transport.setLoopEnd("1:0"); - Tone.Transport.setBpm(100); + Tone.Transport.setBpm(20); var player = new Tone.Player("./audio/505/snare.mp3", function(){ $("#loading").remove(); @@ -45,7 +45,7 @@ } }); - // Create 16 checkboxes with values 0-15. + // Create 16 checkboxes with values 0-16. for (i = 0; i<16; i++) { $("#checkboxes").append(''); } @@ -54,7 +54,7 @@ $('[type="checkbox"]').change(function() { if (this.checked) { - // Convert this checkbox value into a 16th note in transport time. "5" = "0:1:1". + // Convert this checkbox value into a 16th note in transport time. var tSig = Tone.Transport.getTimeSignature(); var tTime = "0:"+Math.floor(this.value/ tSig)+":"+this.value % tSig;