Hezu06 commited on
Commit
fdf4d3a
·
1 Parent(s): cdaa52a

refactor audio playback by normalizing velocity for improved sound consistency

Browse files
Files changed (1) hide show
  1. 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
- velocity
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
  }