Skip to content
New issue

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

Don't reset fluid_synth in MIDIPlayer.cpp stop() #1738

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ipaqmaster
Copy link

@ipaqmaster ipaqmaster commented Oct 8, 2024

This call causes the soundfont to reset to default if a MIDI entry is played and any of the Play, Pause or Stop buttons get pressed after playback has already started. This results in all instruments being reset back to a default piano once playback resumes for the selected MIDI entry.

This patch addresses the issue I experienced in #1737 where playing a MIDI entry works fine, but the soundfont disappears after the Play, Pause or Stop buttons are clicked.

The stop() function calls out to fluid_synth_system_reset(fs_synth_) which breaks the soundfont for the selected MIDI entry. Once playback is resumed, all instruments other than the drumkit have been reset to default MIDI pianos.

This call causes the soundfont to reset to default if a MIDI entry is
played and any of the play/pause/stop buttons get pressed during
playback. This results in all instruments being reset back to a default piano.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant