Florian Schmidt wrote: > aplaymidi -p 129:0 %s > > Change the 129:0 to the corresponding port, of course [i use fluidsynth > and it happens to open port 129:0 if it's the only midi app on my system > :)] I suppose it would be possible to automate this: If you know you > always use fluidsynth, it is possible to replace aplaymidi with a script > that parses the output of > > aconnect -io | grep -i fluid > > and calls aplaymidi with the right -p parameter.. You can simple give the ALSA client name to aplaymidi (see the man page). HTH Clemens