forked from ChomeNS/chomens-bot-java
probably lazy fix the sus
This commit is contained in:
parent
ea8f2cfe8c
commit
86c9085f1d
1 changed files with 6 additions and 1 deletions
|
@ -176,7 +176,12 @@ public class NBSConverter {
|
|||
}
|
||||
|
||||
int pitch = key-33;
|
||||
song.add(new Note(instrument, pitch, (float) note.velocity * (float) layerVolume / 10000f, getMilliTime(note.tick, tempo), note.panning, nbsLayers.get(note.layer).stereo));
|
||||
|
||||
try {
|
||||
song.add(new Note(instrument, pitch, (float) note.velocity * (float) layerVolume / 10000f, getMilliTime(note.tick, tempo), note.panning, nbsLayers.get(note.layer).stereo));
|
||||
} catch (Exception e) {
|
||||
song.add(new Note(instrument, pitch, (float) note.velocity * (float) layerVolume / 10000f, getMilliTime(note.tick, tempo), -1, 100));
|
||||
}
|
||||
}
|
||||
|
||||
song.length = song.get(song.size()-1).time + 50;
|
||||
|
|
Loading…
Reference in a new issue