Skip to content

Commit

Permalink
fix: parseFloat args
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth committed Jan 25, 2024
1 parent 9d9050c commit 117f4b1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions step-sequencer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ <h2>DTMF</h2>
attackControl.addEventListener(
"input",
(ev) => {
attackTime = parseFloat(ev.target.value, 10);
attackTime = parseFloat(ev.target.value);
},
false
);
Expand All @@ -216,7 +216,7 @@ <h2>DTMF</h2>
releaseControl.addEventListener(
"input",
(ev) => {
releaseTime = parseFloat(ev.target.value, 10);
releaseTime = parseFloat(ev.target.value);
},
false
);
Expand Down Expand Up @@ -250,7 +250,7 @@ <h2>DTMF</h2>
hzControl.addEventListener(
"input",
(ev) => {
pulseHz = parseFloat(ev.target.value, 10);
pulseHz = parseFloat(ev.target.value);
},
false
);
Expand All @@ -260,7 +260,7 @@ <h2>DTMF</h2>
lfoControl.addEventListener(
"input",
(ev) => {
lfoHz = parseFloat(ev.target.value, 10);
lfoHz = parseFloat(ev.target.value);
},
false
);
Expand Down Expand Up @@ -304,7 +304,7 @@ <h2>DTMF</h2>
bandControl.addEventListener(
"input",
(ev) => {
bandHz = parseFloat(ev.target.value, 10);
bandHz = parseFloat(ev.target.value);
},
false
);
Expand Down Expand Up @@ -353,7 +353,7 @@ <h2>DTMF</h2>
rateControl.addEventListener(
"input",
(ev) => {
playbackRate = parseFloat(ev.target.value, 10);
playbackRate = parseFloat(ev.target.value);
},
false
);
Expand Down Expand Up @@ -385,7 +385,7 @@ <h2>DTMF</h2>
bpmControl.addEventListener(
"input",
(ev) => {
tempo = parseFloat(ev.target.value, 10);
tempo = parseFloat(ev.target.value);
bpmValEl.innerText = tempo;
},
false
Expand Down

0 comments on commit 117f4b1

Please sign in to comment.