From 52eecca3286253c8cacc403011e8d8c7245d67f7 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Tue, 24 Oct 2023 10:14:22 +0700 Subject: [PATCH] nbs pitch "fix" i am very sure this isn't correct BUT if it works it works --- .../chipmunk/chayapak/chomens_bot/song/NBSConverter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 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 a36d203..b1f0d11 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 @@ -176,7 +176,7 @@ public class NBSConverter implements Converter { if (note.instrument < instrumentIndex.length) { instrument = instrumentIndex[note.instrument]; - key = note.key + (note.pitch / 100); + key = note.key + note.pitch / 100; } else { int index = note.instrument - instrumentIndex.length; @@ -230,8 +230,7 @@ public class NBSConverter implements Converter { instrument = Instrument.of(name); - key += note.key + (customInstrument.pitch / 100); - key -= 45 + (note.pitch / 100); + key += (customInstrument.pitch + note.pitch) / 100; } byte layerVolume = 100;