Spaces:
Sleeping
Sleeping
refactor audio playback by normalizing velocity for improved sound consistency
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -541,7 +541,7 @@
|
|
| 541 |
Tone.Frequency(n.note, "midi").toNote(),
|
| 542 |
Math.min(n.duration, 1.5), // limit duration
|
| 543 |
Tone.now() + Math.random() * 0.02,
|
| 544 |
-
|
| 545 |
);
|
| 546 |
});
|
| 547 |
}
|
|
|
|
| 541 |
Tone.Frequency(n.note, "midi").toNote(),
|
| 542 |
Math.min(n.duration, 1.5), // limit duration
|
| 543 |
Tone.now() + Math.random() * 0.02,
|
| 544 |
+
normalizedVelocity
|
| 545 |
);
|
| 546 |
});
|
| 547 |
}
|