View Single Post
Old 01-13-2018, 02:58 AM   #56
fundorin
Banned
 
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
Default

To which part of the code are you referring, exactly, Michael?
The last one? If it's true, then, there're no hex values there.
Variable value is an argument of the "/track/@/volume" OSC command from Reaper, which is a float number within 0-1 range.

LED rings respond to midi values 0-12 (no LEDs - all 11 LEDs), so the code is simply converting 0-1 float into 0-12 integer. No hex involved.
I'm trying to avoid hex values in my script as much as I can, for better readability, since EEL doesn't make a difference between hex and dec values.

Last edited by fundorin; 01-13-2018 at 03:45 AM.
fundorin is offline   Reply With Quote