We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you call fluid_player_seek(player, ticks), and the midi file has notes that start at exactly the value of ticks, they will not be played.
fluid_player_seek(player, ticks)
ticks
As far as I can tell, this happens because when seeking, all note on/off events are ignored as seen here:
else if(seeking && (event->type == NOTE_ON || event->type == NOTE_OFF)) { /* skip on/off messages */ }
When we reach the seek ticks value, any note on events at that time will be ignored as well.
Not sure what the best solution is here. Perhaps one way to fix it is to modify the seeking flag here:
if(track->ticks + event->dtime > ticks) { return; } if(track->ticks + event->dtime == ticks) { seeking = 0; }
The text was updated successfully, but these errors were encountered:
Sorry for the delay. I've adapted your suggestion and committed a potential fix. Please test this branch:
https://github.com/FluidSynth/fluidsynth/tree/issue646
Sorry, something went wrong.
Works great. Thanks!
69e7eca
No branches or pull requests
If you call
fluid_player_seek(player, ticks)
, and the midi file has notes that start at exactly the value ofticks
, they will not be played.As far as I can tell, this happens because when seeking, all note on/off events are ignored as seen here:
When we reach the seek ticks value, any note on events at that time will be ignored as well.
Not sure what the best solution is here. Perhaps one way to fix it is to modify the seeking flag here:
The text was updated successfully, but these errors were encountered: