Jump to content

RANGE command does not work with Receives / Senders


Recommended Posts

Posted (edited)

Hey,

I'm trying to split an incoming MIDI signal into two zones just like this:

EVENT_RECEIVER id=1 type=NoteOn key=any fwd_id=SENDER:1 range=0:36 
EVENT_SENDER   id=1 type=NoteOn key=any range=0:36  chn=1 ports=100010000000

EVENT_RECEIVER id=2 type=NoteOn key=any fwd_id=SENDER:2 range=36:127 
EVENT_SENDER   id=2 type=NoteOn key=any range=37:127  chn=2 ports=100010000000

Unfortunately the "range" parameter has absolutely no effect here. Regardless what values I enter, it does output two NoteOns for each key (one on ch.1 the other on ch.2) over the whole range. It does have an effect on the velocity though. I could limit the velocity through the range-parameter. But thats not what I want to do :-)

Is that a bug in the firmware? And if yes, who can fix it? :-)

Thanks,
Chris

Edited by FantomXR
Posted

Hi Chris

IIRC range= is not a split but a scale function, so range=0:36 change value 0-->0, 127-->36 and linear ponderation in-between.

maybe try with conditional function, if_=

Cheers

Zam

 

Posted
1 hour ago, Zam said:

Hi Chris

IIRC range= is not a split but a scale function, so range=0:36 change value 0-->0, 127-->36 and linear ponderation in-between.

maybe try with conditional function, if_=

Cheers

Zam

 

Thanks for your reply. 

How could "if_" help here?

What I now did (and what worked) is to create an EVENT_RECEIVER for every single note like

EVENT_RECEIVER id=1 type=NoteOn key=20 fwd_id=SENDER:1
EVENT_RECEIVER id=1 type=NoteOn key=21 fwd_id=SENDER:1
EVENT_RECEIVER id=1 type=NoteOn key=22 fwd_id=SENDER:1

Since they all listen to the same ID, its easy to activate / deactivate that with meta events. This is not beautiful because it's a lot of code. But at least its a working solution ;-)

Posted
2 hours ago, FantomXR said:

How could "if_" help here?

it's a conditional, it will activate the event according to value

don't remember precise form, I don't write NGC since years now, but something like if_less=37, your receiver will forward only data from 0 to 36

 

Posted
On 9/2/2022 at 5:51 PM, Zam said:

it's a conditional, it will activate the event according to value

don't remember precise form, I don't write NGC since years now, but something like if_less=37, your receiver will forward only data from 0 to 36

 

This might also be valid only for the velocity but I'll give it a try!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...