[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fluid-dev] Questions about fluidsynth router commands

From: Lutz Morelater
Subject: [fluid-dev] Questions about fluidsynth router commands
Date: Sun, 21 Sep 2008 14:39:06 +0200
User-agent: KMail/1.9.9


when run from the command line some router commands can be used with 

I would like to use these router commands to play several sounds on one MIDI 
channel, which is not possible with MIDI standard commands.

Let's say, I do this:

fluidsynth -a alsa --midi-channels=48

This will run fluidsynth once and create ONE single instance of fluidsynth. It 
will create THREE MIDI IN ports of fluidsynth which will show up in tools 
like ALSA sequencer etc.

In ALSA sequencer, for testing purposes, I create a connection from vkbd 
(virtual keyboard) to the first (lowest port number) of the 3 MIDI inputs of 

I load my favourite soundfont file into fluidsynth.

Now I can enter router commands in fluidsynth:

router_begin note
router_chan 0 0 0 20
router_chan 0 0 0 21

This will clear the default router settings, install a new router rule which 
will track incoming MIDI note on messages of channel 0 and send the MIDI note 
on message on channel 20 and 21 (which are actually located in port 2 of the 
three virtual instances of MIDI in ports). So this means I am now playing two 
sounds on one MIDI channel at the same time.

How do I change the sounds of channel 20 and 21 from within fluidsynth? Do I 
have to to this by connecting a tool to all of the three MIDI IN ports of 
fluidsynth and send the preset change commands from there (this would mean I 
send a preset change command to the second port of fluidsynth, channel 5 and 

Or is there another way? I hope it is not too complicated to understand what I 
am attempting to do...

Thanks for any hint and regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]