nbs pitch "fix"

i am very sure this isn't correct BUT if it works it works
This commit is contained in:
Chayapak 2023-10-24 10:14:22 +07:00
parent cde528cd54
commit 52eecca328

View file

@ -176,7 +176,7 @@ public class NBSConverter implements Converter {
if (note.instrument < instrumentIndex.length) { if (note.instrument < instrumentIndex.length) {
instrument = instrumentIndex[note.instrument]; instrument = instrumentIndex[note.instrument];
key = note.key + (note.pitch / 100); key = note.key + note.pitch / 100;
} else { } else {
int index = note.instrument - instrumentIndex.length; int index = note.instrument - instrumentIndex.length;
@ -230,8 +230,7 @@ public class NBSConverter implements Converter {
instrument = Instrument.of(name); instrument = Instrument.of(name);
key += note.key + (customInstrument.pitch / 100); key += (customInstrument.pitch + note.pitch) / 100;
key -= 45 + (note.pitch / 100);
} }
byte layerVolume = 100; byte layerVolume = 100;