From a6233804ec0c50b9b6be07d1b5a4bf9a503da785 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 3 Sep 2023 08:11:22 +0700 Subject: [PATCH] fix the pitch for custom sounds https://opennbs.org/nbs the bottom part --- .../land/chipmunk/chayapak/chomens_bot/song/NBSConverter.java | 2 ++ 1 file changed, 2 insertions(+) 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 7cf8fc7..ee5eb4e 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,6 +177,8 @@ public class NBSConverter implements Converter { instrument = Instrument.of(name); key += customInstrument.pitch; + + key -= 45 + (note.pitch / 100); } byte layerVolume = 100;