You are not logged in.

#1 2022-01-16 03:07:54

amca01
Member
Registered: 2008-12-28
Posts: 57

Stuck note after exit from aplaymidi

When playing a midi file with

aplaymidi -p 128:0 file.midi

the Ctrl-C combination stops and exits from the application, but doesn't necessarily close off the midi instruments: I ended up with a single tone being played and couldn't work out how to turn it off.  Eventually I had to do a hard reboot, which seems excessive. 

This is not a new issue; the recommendation given here is to embed aplaymidi into a small script which sends an "all notes off" midi instruction. This is easy to do if you have any idea about midi files and sequencers, which I don't.  I just want to be able to play midi files, and if necessary, stop the playback. 

So either I need: (a) an all_notes_off.midi file - I can't find one with my searching, or (b) more information about how to use (for example) sendmidi to do this, or (c) some other method of playback which allows a clean exit from midi playing if using Ctrl-C.

Many thanks!
Al

Offline

Board footer

Powered by FluxBB