Changing resolution of a slider

Hello, I have a translator that convert CC7 to CC4 .

I only want to send value from 0 to 100 instead of 0 to 127

I tried qq=0,8 for example but the rules editor won’t let me write such a number

Hi,

Please find the attached project file. I set my aliases up as follows:

You can learn more about aliases from this tutorial.

The rules are simple for scaling,

// scale value qq is input value
// output range 0-100
qq=qq*101
// input range 0-127
qq=qq/128
// qq is output value

See this tutorial on scaling,

Scale-and-convert-slider.bmtp (1.7 KB)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

thank you so much

1 Like