Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 03-22-2017, 04:23 PM   #1
DruMunkey
Human being with feelings
 
Join Date: Feb 2016
Posts: 232
Default What's the best/most elegant way to convert note on/off to CC 0/127 toggle?

I need to turn on/off an external HW module that uses the CC switch method of 0=off, 127=on.

I can set the CC to be whatever I want.

The controller I need to use won't send CC... Only Notes.

So I need to convert a note on/off to CC on off

So it woudl work like this:

For example

Send Note 60 on/off : Convert to CC 20 value=0
Send Note X on/off : Convert to CC 20 value=127

I've rigged up something using a few of Piz's midi thing, but it a kludge.

It seems like a pretty common thing to need to do, so I figure someone must have a decently elegant solution, or a JS I have not found yet.

Thanks!
DruMunkey is offline   Reply With Quote
Old 03-23-2017, 03:45 AM   #2
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,679
Default

Try the attached (this uses two specific notes, I presume you want to play with the others):



How to install a JS FX (in Post #4)
Attached Files
File Type: txt midi_note_to_CC_switch.txt (3.2 KB, 226 views)
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 03-23-2017, 12:09 PM   #3
DruMunkey
Human being with feelings
 
Join Date: Feb 2016
Posts: 232
Default

Quote:
Originally Posted by DarkStar View Post
Try the attached (this uses two specific notes, I presume you want to play with the others):



How to install a JS FX (in Post #4)
1) Did you just make this?! If so, WOW! Thanks!
2) Thanks anyway! I'd prefer to just use one note so that it toggles, but I may be able to hack this a bit to do that.
DruMunkey is offline   Reply With Quote
Old 03-24-2017, 05:44 AM   #4
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,679
Default

Try the attached - a single selected note toggles the CC switch.
Attached Files
File Type: txt midi_note_to_CC_switch.txt (2.0 KB, 234 views)
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 03-25-2017, 01:06 PM   #5
DruMunkey
Human being with feelings
 
Join Date: Feb 2016
Posts: 232
Default

Quote:
Originally Posted by DarkStar View Post
Try the attached - a single selected note toggles the CC switch.
You are my hero!

It's odd there's nothing like this in active use as it seems like such a common thing to need to do, especially with HW...?

Anyway, thank you very much!
DruMunkey is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.