View Single Post
Old 01-25-2018, 08:41 AM   #573
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 11,183
Default

Quote:
Originally Posted by azslow3 View Post
Not important for the mission, but I want to mention:

Hardware controllers do not send 7f 7f since none of them have real 14 bit resolution. Best faders are 10bit and the highest value they send is 7f 70.

That can sound not important, but some parameters have hi native resolution. When controlled from such faders without software correction for 10bit, they can not be set to "max" (the max value requested will be 0,9991, not 1,0).
The problem even more noticeable when the controller is just "Mackie compatible" but has 7bit faders. In that case the maximum it sends is 7f 00. Without correction, that produce 0,9922. MIDI resolution is very close to that (126 - 0,9921) and most parameters see such difference to 1. as significant.

In my software, I detect real resolution from 14bit controllers (PB, CC14, (N)RPN) "on the fly" by checking the presence of low order bits.
Yes, thanks for reminding me, although I will not be as heroic as you and detect bit depth on the fly, since this only matters at the extremes, because controllers may not be able to generate the final few bits.

I'll just add simple corrections for 14 bit faders:
if value is within .001 of 1.0 it equals 1.0.
if value is within .001 of 0.0 it equals 0.0.

As far as 7 bit, should be fine, since we do not use the 2 byte approach you show, but rather convert to normalized directly from the byte of interest.
__________________
To install you need the CSI Software and Support Files
For installation instructions and documentation see the Wiki
Donate -- via PayPal to waddingtongeoff@gmail.com
Geoff Waddington is offline   Reply With Quote