check for note volume == 0 and increase the notes per second

This commit is contained in:
Chayapak 2023-09-23 18:01:25 +07:00
parent bfc5854cdb
commit 7bfa7d2e75

View file

@ -295,7 +295,7 @@ public class MusicPlayerPlugin extends Bot.Listener {
while (currentSong.reachedNextNote()) { while (currentSong.reachedNextNote()) {
final Note note = currentSong.getNextNote(); final Note note = currentSong.getNextNote();
if (notesPerSecond > 1240) continue; if (note.volume == 0 || notesPerSecond > 2500) continue;
float key = note.pitch; float key = note.pitch;