Old 12-01-2021, 01:00 PM   #1
S.Pumpernickel
Human being with feelings
 
Join Date: May 2011
Posts: 25
Default 127 - (CC value) ?

Hello.
I'm looking for a way to "invert" a CC curve in a MIDI file.
Mathematically speaking, for every point with value X I want to change it to 127-X.
Is there an automated way of doing this?

Thank you.
S.Pumpernickel is offline   Reply With Quote
Old 12-02-2021, 02:31 AM   #2
xpander
Human being with feelings
 
xpander's Avatar
 
Join Date: Jun 2007
Location: Terra incognita
Posts: 7,670
Default

There should be a Lokasenna_Invert selected CC event values lua script available via ReaPack, or get it straight from here.
xpander is offline   Reply With Quote
Old 12-02-2021, 06:23 AM   #3
S.Pumpernickel
Human being with feelings
 
Join Date: May 2011
Posts: 25
Default

Thank you! I'll take a look.

EDIT: It worked as intended. Thank you again. I was surprised by how long it took - "press enter and go make a cup of tea" kinda situation.

Last edited by S.Pumpernickel; 12-02-2021 at 08:29 AM.
S.Pumpernickel is offline   Reply With Quote
Old 12-05-2021, 01:03 AM   #4
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 4,031
Default

You could look for real-time jsfx variants? Maybe those exist as well.
TonE is offline   Reply With Quote
Old 12-05-2021, 11:10 AM   #5
S.Pumpernickel
Human being with feelings
 
Join Date: May 2011
Posts: 25
Default

Thank you, TonE, but in this case, Lokasenna_Invert selected CC does exactly what I need it to do.
S.Pumpernickel 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 02:02 PM.


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