forked from ChomeNS/chomens-bot-java
nbs pitch "fix"
i am very sure this isn't correct BUT if it works it works
This commit is contained in:
parent
cde528cd54
commit
52eecca328
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue