I’m putting an analog signal into VVVV using an Arduino. But I want values in certain ranges to equal certain things, i.e. -15 to 15 is 0, 16 to 40 is 45. The only way I’ve figured out to do this is by doing an if loop with that range, and then getting it to display the number as a string (which I’ve manually typed in), then repeating it for the entire range. It seems like there should be an easier way to do this? Any suggestions would be appreciated. I’ve attached an image of a segment of it below.
Please attach your patch. It’s much easier to check out and modify an actual patch than having to repatch the whole thing looking at a blurry screenshot.