Re: Routing & Filtering

From: Jacek Kurasiewicz <jk_at_jacool.com>
Date: Thu Aug 21 2008 - 09:36:56 CEST
Alexandre Ratchov pisze:
> On Thu, Aug 21, 2008 at 12:15:01AM +0200, Jacek Kurasiewicz wrote:
>   
>> 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?
>>
>>     
>
> i just tested with slightly differnt parameters (to match my midi
> setup and it works here).
>
> midish numbers prog changes from 0; so for instance program change
> 4 on midish may correspond to program change 5 on certain hardware.
>
> can you check that your midi hardware channels numbers and program
> changes numbers start at 0? if not remplace: 1 -> 0, 5 -> 4 and/or
> 15 -> 14 on the midish side.
>
> to keep things consistent everything is numbered from 0 on midish.
>
> to help debugging filters you can turn debug mode on with the
> fillowing command:
>
> 	debug filt 1
>
> it will display lines like this one:
>
> filt_mapev: (any 2:2 0:0 > any 0:0 0:0): xpc {2 0} 4 2bc0 -> xpc {0 0} 4 2bc0
> 	    ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^    ^^^^^^^^^^^^^^^^
> 	        tranformation rule	    input event       output event
>   
Thank you Alexandre,

I'm going to debug my filter and I will let you know what happen.

Jacek
> -- Alexandre
>
>   
Received on Thu, 21 Aug 2008 09:36:56 +0200

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