diff --git a/src/main/java/com/github/hhhzzzsss/songplayer/conversion/MidiConverter.java b/src/main/java/com/github/hhhzzzsss/songplayer/conversion/MidiConverter.java index 5e996fd..2816e2c 100644 --- a/src/main/java/com/github/hhhzzzsss/songplayer/conversion/MidiConverter.java +++ b/src/main/java/com/github/hhhzzzsss/songplayer/conversion/MidiConverter.java @@ -93,6 +93,7 @@ public class MidiConverter { int pitch = sm.getData1(); int velocity = sm.getData2(); if (velocity == 0) continue; // Just ignore notes with velocity 0 + velocity = (velocity * 100) / 127; // Midi velocity goes from 0-127 long deltaTick = event.getTick() - prevTick; prevTick = event.getTick(); microTime += (mpq/tpq) * deltaTick;