remove debug line and fix pitch issue.,,.
This commit is contained in:
parent
e6ef185e9f
commit
ebd53d9d5e
1 changed files with 4 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue