On Thu, 27 Jan 2005 09:08:06 +0100 (MET) Clemens Ladisch <clemens@xxxxxxxxxx> wrote: > 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). Oh doh!.. Well, at least i learned something by not reading the manpage: echo `aconnect -io |grep -i fluid |cut -d ' ' -f 2`0 :) flo -- Palimm Palimm! http://affenbande.org/~tapas/