forked from ChomeNS/chomens-bot-java
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:
parent
3980f8f96f
commit
27e5909697
1 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue