without stopping or pausing the song inbetween, when the song ends, Player.getSongPercentRemaining() returns -22. Not sure why. When i skip to 100 percent using Player.skipToPercent(), it skips to 100%, and acts like the song is done. the endOfFile event is triggered, and the song stops. Not Really sure why it does all of this.
The MIDI file you provided is fairly complex so there could be other things going on, but the latest release (2.0.5) on PR #40 may resolve the issue you're seeing.
This midi will go over 100% https://cdn.discordapp.com/attachments/360985607209484290/469173767126646815/poppippo3.mid
I am using Player.getSongPercentRemaining()
without stopping or pausing the song inbetween, when the song ends, Player.getSongPercentRemaining() returns -22. Not sure why. When i skip to 100 percent using Player.skipToPercent(), it skips to 100%, and acts like the song is done. the endOfFile event is triggered, and the song stops. Not Really sure why it does all of this.