diff --git a/src/main/java/com/github/hhhzzzsss/songplayer/conversion/NBSConverter.java b/src/main/java/com/github/hhhzzzsss/songplayer/conversion/NBSConverter.java index 26a1776..add90cb 100644 --- a/src/main/java/com/github/hhhzzzsss/songplayer/conversion/NBSConverter.java +++ b/src/main/java/com/github/hhhzzzsss/songplayer/conversion/NBSConverter.java @@ -153,13 +153,13 @@ public class NBSConverter { layerVolume = nbsLayers.get(note.layer).volume; } - int key = note.key; + int key = note.key + SongHandler.getInstance().pitch; while (key < 33) key += 12; while (key > 57) key -= 12; int pitch = key-33; - int noteId = (pitch + instrument.instrumentId*25) + SongHandler.getInstance().pitch; + int noteId = pitch + instrument.instrumentId*25; song.add(new Note(noteId, getMilliTime(note.tick, tempo))); }