From 27e59096975d3ccba32ec182a12c16c8a6f3a3e5 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 18 Aug 2023 15:34:01 +0700 Subject: [PATCH] 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 --- .../chipmunk/chayapak/chomens_bot/song/NBSConverter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/song/NBSConverter.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/song/NBSConverter.java index c3b12ef..031cf0a 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/song/NBSConverter.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/song/NBSConverter.java @@ -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 {