CHIP MC MOMENT BRUHHHHHHHH

or is it harry zhou moment?
yeah this took a few times of debugging
and to fix it
just change `this.sound = name` to `this.sound = sound`
This commit is contained in:
Chayapak 2023-06-09 20:47:00 +07:00
parent f76c12d81f
commit a03605ddac
2 changed files with 4 additions and 2 deletions

View file

@ -28,7 +28,7 @@ public class Instrument {
this.id = id;
this.name = name;
this.offset = offset;
this.sound = name;
this.sound = sound;
}
private Instrument (int id, String name, int offset) {

View file

@ -163,10 +163,12 @@ public class NBSConverter {
instrument = instrumentIndex[note.instrument];
} else {
int index = note.instrument - instrumentIndex.length;
if (index >= customInstruments.size()) continue;
NBSCustomInstrument customInstrument = customInstruments.get(index);
instrument = Instrument.of(customInstrument.name);
// key += customInstrument.pitch;
key += customInstrument.pitch;
}
// if (key < 30 || key > 60) continue;