Re: [LAU] midi capture of external hardware over usb

From: Alexandre Ratchov <alex@email-addr-hidden>
Date: Sun Dec 20 2009 - 17:11:21 EET

On Sat, Dec 19, 2009 at 11:11:45AM -1000, david wrote:
> Gabriel M. Beddingfield wrote:
>
> > Add and change lines as you see fit. These are all decimal
> > note numbers. When you're done, save the file and issue the
> > 'make' command.
> >
> > To run it, make sure you start jackd with the -Xseq option
> > to create the bridge between ALSA MIDI and JACK MIDI. Then,
> > run this program. Use something lack qjackctl to insert it
> > between your input and output ports on the 2x2.
> >
> > Hope it helps!!
>
> Hmmm, couldn't the same thing have been done using midish????
>

yep, for instance to exchange notes 60 and 61:

dnew 0 nil wo # register 0 as output device
dnew 1 "MyClient:MyPort" ro # register 1 as input devices
fnew myfilt # create a filter
fmap {any 1} {any 0} # map anything on 1 -> 0
fmap {note 1 60} {note 0 61} # map note 60 -> note 61
fmap {note 1 61} {note 0 60} # map note 61 -> note 60
i # start processing

at this stage, midish processes notes from MyClient:MyPort
and sends the result on midish:midish/0, example:

$ aseqdump -l |grep midish
130:0 midish midish/0

applications connecting to "midish:midish/0" will see what you play
on MyClient:MyPort, but with notes 60 and 61 exchanged.

-- Alexandre
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Sun Dec 20 20:15:02 2009

This archive was generated by hypermail 2.1.8 : Sun Dec 20 2009 - 20:15:02 EET