Fluidsynth map midi commands

Support & discussion regarding DAWs and MIDI sequencers.

Moderators: MattKingUSA, khz

Post Reply
User avatar
flappix
Established Member
Posts: 50
Joined: Thu Jan 19, 2017 10:39 pm
Location: Germany
Been thanked: 16 times

Fluidsynth map midi commands

Post by flappix »

Hi,
I want to change the volume in Fluidsynth using a midi controller. By default Fluidsynth expects to get the volume by a CC7 event but I want it to change the volume on a CC24.

I think the router directive router_par1 is what I need but I cannot make it work.

I started Fluidssynth in server mode without shell

Code: Select all

> fluidsynth -s -i -a jack -m jack -g 2 fluidsynth/custom.sf2 -o synth.polyphony=1
Then I connected via netcat und send the following route directive

Code: Select all

> nc localhost 9800
router_begin cc
router_par1 7 7 1 17
router_end
I dont get any error so I think fluidsynth is accepting my command. But nothing changes, volume is still only controllable via CC7.
From what I found on the web my command should simply add 17 the CC7 event transforming it to a CC24.

Also the other way around does not change anything:

Code: Select all

router_begin cc
router_par1 24 24 1 -17
router_end
Any ideas how can I solve this?
Last edited by flappix on Wed Feb 09, 2022 5:46 pm, edited 1 time in total.
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: Fluidsynth map midi commands

Post by asbak »

nvm
Last edited by asbak on Tue Feb 08, 2022 7:48 am, edited 2 times in total.
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
dirkk0
Established Member
Posts: 5
Joined: Mon Feb 07, 2022 8:17 pm
Been thanked: 1 time

Re: Fluidsynth map midi commands

Post by dirkk0 »

Shouldn't it be

Code: Select all

router_par1 7 7 0 17
?
I cant test it right now, but from this Wiki page it looks like the multiplicator might be zero.
Post Reply