Re: Routing & Filtering

From: Jacek Kurasiewicz <jk_at_jacool.com>
Date: Thu Aug 21 2008 - 00:15:01 CEST
Alexandre,

Thank you for your response. This for me works as expected:

fnew myfilt
fmap {any {0 1}} {any {0 1}} // routing from in to out of dev 0
i

But adding following lines:
s
fmap {pc {0 1} 5} {pc {0 1} 15} // redirecting program change 5 -> 15
i
doesn't work as expected.

What do you think about it?
Is it my bug?

Best regards,
Jacek

Alexandre Ratchov pisze:
> 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 Thu, 21 Aug 2008 00:15:01 +0200

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