Rules only respond to matching value

I wrote a rule to scale cc value. Followed the tutorial exactly. But instead of applying to every input value as expected, it instead only applies to the value that matches the cc#. For Instance if the affected cc# is #1 (mod wheel), the rule will only apply when cc#1 is at input value #1. It’s weird as heck and I don’t know what I’m doing wrong. I’m just trying to get this rule to respond with any value the cc might hit.

Including project file to help troubleshoot.
scale1.bmtp (1.0 KB)
scaling_dont_work

Hi and welcome to the Bome community!

Instead of incoming value of pp as shown here.

image

set it to any value set variable to value pp as shown below:

type or paste code here

image

Then assuming you want to scale from value 0-127 (128 range) to 0-24 (25 range), the rules would look like this.

// This will convert 0-127 to 0-24
// outgoing scale
qq=pp*25
// incoming scale
qq=qq/128

Here is the updated project file with the suggested changes.

scale1-sjc.bmtp (1.1 KB)

Steve Caldwell
Bome Customer Care


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

It works! Thank you Steve!

1 Like