From 66df6196ba3fc07da02527f5b36c57e92033d91c Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Wed, 9 Aug 2023 19:29:43 +0700 Subject: [PATCH] actually make it better --- .../chayapak/chomens_bot/plugins/MusicPlayerPlugin.java | 4 ++-- 1 file changed, 2 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 fd0a2b0..b42eb7a 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 @@ -309,8 +309,8 @@ public class MusicPlayerPlugin extends Bot.Listener { // this uses the average of the pitch and the volume to calcuate the stereo final float average = (note.pitch + note.volume) / 2; - if (average > 5) blockPosition = (average - 5) / -5; - else if (average < 3) blockPosition = ((average - 5) * -1) / 5; + if (average > 7) blockPosition = (average - 7) / -7; + else if (average < 3) blockPosition = ((average - 3) * -1) / 3; } bot.core.run(