Hardware controlled volume setting

Hey fellow patchers,

Well i got a problem with a hardware system I set up recently which communicates with v4 by a RS323 node. Basically my setup consists of 8 light barriers in a row which control a mp3 player in v4. so far so good.
Now i want those 8 barriers to increase or decrease the volume of the mp3 currently played. If the barriers are “crossed” from left to right the volume should go up and vice versa for decrease.

Unfortunately I’m pretty new to v4 and, noob as I am, don’t know how to get that working. Anyone out there with a helping idea?

Thanks a lot in advance

I made a module Vol (Animation) which can be downloaded at kalle-Modules-Animation. It has Boolean UP and DOWN inputs for in-/decreasing a Value. you can define MIN and MAX and the SPEED (Duration) inbetween.

You have to patch some boolean logic with your 8 barriers to get that up/down signals but then it should be helpful.