Skip to content

Commit

Permalink
Issue #112 Fix: Updates Noise Dur Slider value assignment (#113)
Browse files Browse the repository at this point in the history
* Updates slider min, max and step values. Removes parseInt.

* Update step-sequencer/index.html

Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>

---------

Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 25, 2024
1 parent 754c2ae commit f366a17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions step-sequencer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ <h2>Noise</h2>
name="duration"
id="duration"
type="range"
min="0"
max="2"
min="0.25"
max="1"
value="1"
step="0.1"
step="0.25"
/>
<label for="band">Band</label>
<input
Expand Down Expand Up @@ -304,7 +304,7 @@ <h2>DTMF</h2>
durControl.addEventListener(
"input",
(ev) => {
noiseDuration = parseInt(ev.target.value, 10);
noiseDuration = parseFloat(ev.target.value);
},
false
);
Expand Down

0 comments on commit f366a17

Please sign in to comment.