From ebd53d9d5e53213fd3cec0accbaf7d42691589c9 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 14 Apr 2023 13:59:40 +0700 Subject: [PATCH] remove debug line and fix pitch issue.,,. --- .../chayapak/chomens_bot/plugins/MusicPlayerPlugin.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java index b8c9e2d..6d836f2 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java @@ -100,7 +100,6 @@ public class MusicPlayerPlugin extends SessionAdapter { } else { songQueue.add(loaderThread.song); fileName = loaderThread.fileName; - System.out.println(fileName + " " + loaderThread.fileName); bot.chat().tellraw(Component.translatable("Added %s to the song queue", Component.empty().append(loaderThread.song.name).color(NamedTextColor.GOLD))); } loaderThread = null; @@ -276,7 +275,10 @@ public class MusicPlayerPlugin extends SessionAdapter { final double floatingPitch = Math.pow( 2, - (key + (pitch / 10)) / 12 + !nbs ? + // sus math real + ((key + (pitch / 10)) - 12) / 12.0 : // if it is midi + (key + (pitch / 10)) / 12 // if it is nbs ); bot.core().run(