Re: [LAU] Inquiry regarding midi-filters

From: Benoît Rouits <brouits@email-addr-hidden>
Date: Fri Aug 27 2010 - 00:57:32 EEST

Le jeudi 26 août 2010 à 23:34 +0200, Arnold Krille a écrit :
> On Thursday 26 August 2010 22:37:05 Benoît Rouits wrote:
> > Le jeudi 26 août 2010 à 21:23 +0200, Arnold Krille a écrit :
> > > Hi all,
> > >
> > > I do have a question for all the midi-freaks:
> > >
> > > I have a korg nanokontrol and would like to use it to control a mixer
> > > (behringer ddx, not my own). For faders this works quite well, for the
> > > mute- buttons I am stumped:
> > > The ddx wants ctrl 104 with the channel as value to mute and ctrl 105
> > > with the channel to unmute.
> > > The nanokontrol can only send one controller with two different values
> > > per button.
> > >
> > > So I thought about making the nanokontrol send the channel as controller
> > > and 104 as value for mute 105 for unmute. And then use a midifilter to
> > > switch ctrl- number and value before sending it to the ddx.
> > >
> > > And this is where the fun begins.
[...]
> > > Thanks for your answers,
> > >
> > > Arnold
> >
> > If the matter is to swap a controller parameter with its value,
> > i can luckily code that now. Would the process be:
> >
> > if (event_type == CONTROLLER) {
> > if (event_channel == channel_to_work_on) {
> > if (event_param == controller_to_work_on) {
> > swap = event_value;
> > event_value = event_param;
> > event_param = swap;
> > }
> > }
> > }
>
> Yes. And in which app/frame-work do I program that?

None, it is already (and freshly) done in Pidim revision 18.
The program is called pidim_ctrl_swap you can check out it by:

$ svn co https://herewe.servebeer.com/svn/pidim
$ more README
#install required libraries and dev files
$ ./autogen.sh
$ ./configure
$ make && sudo make install
$ pidim_ctrl_swap [instance_name_or_simply_number]

> Note that I am very capable of writing the code myself, it just surprises me
> that many "flexible" midi-routers exist but none can fulfill these simple(?)
> task. Or in the case of pd can't fulfill it reliably.

Pd would probably do the trick, but it is a foreign realm to me.

> I didn't think this task would require me to write my own midi-router. (Which
> I would probably name "yet another flexible midi router that is actually
> flexible" or yafmrtiaf.)

:-)

> Have fun,
>
> Arnold

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Fri Aug 27 12:15:08 2010

This archive was generated by hypermail 2.1.8 : Fri Aug 27 2010 - 12:15:08 EEST