Jump to content

Mute MIDI when Mod Wheel Certain Value?


Recommended Posts

I'm a keyboardist / amateur scripter who's been trying to write a script that prevents note on messages from being sent when a continuous controller value (1 for the Mod Wheel) is in a certain range. The problem is, when I make HandleMIDI the continuous controller, I can't affect the notes and when I make the HandleMIDI function the note, I can't read the continuous controller to do anything with it. What I would like is something like this

 

 

function HandleMIDI(event)
{
 if (event instanceof Note && ContinousController(1) < 50)
   { event.send()}
}

 

Any help would be greatly appreciated.

Link to comment
Share on other sites

I'm a keyboardist / amateur scripter who's been trying to write a script that prevents note on messages from being sent when a continuous controller value (1 for the Mod Wheel) is in a certain range. The problem is, when I make HandleMIDI the continuous controller, I can't affect the notes and when I make the HandleMIDI function the note, I can't read the continuous controller to do anything with it. What I would like is something like this

 

 

function HandleMIDI(event)
{
 if (event instanceof Note && ContinousController(1) < 50)
   { event.send()}
}

 

Any help would be greatly appreciated.

 

There's a time to use a scripter but there's also a time to use The Environment instead.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...