use the opennbs thing

oh wow this is such a simple fix how am i so dumb and not know this
it's from https://github.com/OpenNBS/OpenNoteBlockStudio/blob/master/scripts/selection_transpose/selection_transpose.gml if you are lazy to find it
this seems to also be the method evilbot is using
This commit is contained in:
Chayapak 2023-08-18 15:34:01 +07:00
parent 3980f8f96f
commit 27e5909697

View file

@ -177,13 +177,16 @@ public class NBSConverter {
key += customInstrument.pitch;
}
// if (key < 30 || key > 60) continue;
byte layerVolume = 100;
if (nbsLayers.size() > note.layer) {
layerVolume = nbsLayers.get(note.layer).volume;
}
// these 2 lines are totallynotskidded from https://github.com/OpenNBS/OpenNoteBlockStudio/blob/master/scripts/selection_transpose/selection_transpose.gml
// so huge thanks to them uwu
while (key < 33) key += 12;
while (key > 57) key -= 12;
int pitch = key-33;
try {