Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Midi notes are never released and sustained forever #7637
Version of OpenTTD
When I switch between songs I expect to not hear any notes from the previous song.
Notes are sustained forever even when you exit the game.
Steps to reproduce
Using Gentoo Linux
You can send Midi off notes to ALSA like CC 123 or something like that and release the sustain pedal as well between songs and before exit the game.
By the way, thanks for your awesome work
If you read the gentoo package itself they do this:
A possible workaround for the missing note-offs on skip track could be if aplaymidi can be instructed to send various reset messages on startup (ideally a GM init message
The extmidi driver in OpenTTD is designed for softsynths that naturally end all sound and implicitly reset on exit/startup, not piping to external synths/hardware synths, it would require a major reworking of it to make that work. That effort would probably be better to put into writing a dedicated ALSA-MIDI driver for OpenTTD to natively output to a hardware port.