Re: Routing & Filtering

From: Alexandre Ratchov <alex_at_caoua.org>
Date: Wed Aug 20 2008 - 00:19:08 CEST
On Tue, Aug 19, 2008 at 11:40:51PM +0200, Jacek Kurasiewicz wrote:
> Hello,
>
> What I'm trying to do is to map  Program Change events from Line6 X3 live 
> to Program Change or/and Control Change of my Digitech Whammy. The scenario 
> would be following:
> if(event.dev is 0 && event.channel is 1 && event.ProgramChange is 5) then{
>    change dev1,channel1 -> ProgramChange to 15;
>    and
>    change dev1,channel1 -> ControlChange11(expr. pedal) to 0;
> }
>
> Is this scenario possible with midish? I found *filtdevmap, **filtchanmap, 
> **filtctlmap, **filtkeymap but I have no idea how to use it in my scenario. 
> If anyone would give me a hand pls?
>

that's not possible with the old-style filtxxx functions, the newer
filter functions are part of the snapshot, here:

	http://caoua.org/midish/midish.tar.gz

they allow to do the ``program change part'', as follows:

	fnew myfilt
	fmap {pc {0 1} 5} {pc {1 1} 15}

mapping program changes to controllers is not possible.

If device 0 is a keyboard, you'll probably need a default mapping
for non-program change events:

	fnew myfilt
	fmap {any {0 1}} {any {1 1}}
	fmap {pc {0 1} 5} {pc {1 1} 15}

Also note that midish counts channels from 0..15, and not 1..16.

hth,

-- Alexandre
Received on Wed, 20 Aug 2008 00:19:08 +0200

This archive was generated by hypermail 2.1.8 : Wed Nov 08 2017 - 16:32:20 CET