Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER General Discussion Forum

Reply
 
Thread Tools Display Modes
Old 11-25-2022, 01:44 AM   #1
cjunekim
Human being with feelings
 
Join Date: Dec 2016
Posts: 255
Default getting a center value with 7-bit MIDI CC

Hello

As we know, 7-bit MIDI CC messages cover values from 0 to 127. If the fx plugin parameter to control has a meaningful "center", for example panning's center or 0db-gain, we can't precisely achieve the actual center. It's because the 7-bit midi cc values vary from 0 to 127, and hence the center calculates to be 63.5, which is between 63 and 64, and we can't never reach that value.

So for example, if I use JS: Volume Adjustment fx and control the Adjustment(dB) parameter with an external MIDI controller knob, the actual dB goes from -1.2 to 1.2 as the MIDI cc value changes from 63 to 64. It never reaches 0 dB.

When trying to control a reaper track's pan value with an external MIDI controller with 7-bit midi CC, reaper seems to internally manage the issue and it rounds to center when it's near center.

There are a couple of roundabout ways:
  1. Use a 14-bit MIDI CC controller. However, there aren't many midi controllers with higher resolution and even if you can find one, most plugins don't accept 14-bit MIDI CC messages
  2. Use ReaLearn and use the following the formula as Control transformation : y=x+1/(127*2) Now MIDI CC value 63 will be the precise center.
  3. Assign a controller button to set the parameter value to center.

Each one has its own pros and cons. Any other alternatives?

Last edited by cjunekim; 11-25-2022 at 01:51 AM.
cjunekim is offline   Reply With Quote
Old 11-25-2022, 07:53 AM   #2
helgoboss
Human being with feelings
 
helgoboss's Avatar
 
Join Date: Aug 2010
Location: Germany
Posts: 2,179
Default

I think setting Source Min to 1 should be similar when using ReaLearn, but not sure now.

Fun fact: 14-bit also has an even number of values and therefore no perfect center
helgoboss is online now   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:14 AM.


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