Re: [ecasound] Redirecting a FIFO pipe with raw MIDI to the Jack/ALSA system

From: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas@email-addr-hidden>
Date: Fri Apr 17 2009 - 00:06:42 EEST

On Thursday, April 16, 2009, Thomas Baruchel wrote:
> I have a process writing raw midi on a FIFO. I want this raw midi data to
> be redirected to my fluidsynth/Qsynth synthetiser. Here is the output of my
> "aconnect -lo":
>
> client 14 : 'Midi Through' [type=noyau]
> 0 'Midi Through Port-0'
> client 128 : 'FLUID Synth (24033)' [type=utilisateur]
> 0 'Synth input port (24033:0)'
>
> I want the raw midi data written on the FIFO file to be sent to the client
> 128:0

In addition to Kai's snd-virmidi trick, I would add that FluidSynth has
rawmidi support. So you can use the pipe directly, without ALSA at all. For
instance:

$ mkfifo $HOME/midipipe
$ fluidsynth -a oss -m oss -o midi.oss.device=$HOME/midipipe soundFont.sf2

>From this point, FluidSynth is reading events from your pipe. You can play a
MIDI Note On event typing this command in another Bash session:

$ echo -ne '\x90\x40\x7f' > $HOME/midipipe

Regards,
Pedro

P.D. You can download a new, fresh FluidSynth 1.0.9 release and enjoy!
http://savannah.nongnu.org/files/?group=fluid

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Fri Apr 17 00:15:01 2009

This archive was generated by hypermail 2.1.8 : Fri Apr 17 2009 - 00:15:01 EEST