I'm having a bit of trouble with an expression (I'm just getting to grips with them). Basically, I have a toggle, going into an [expr]. When the toggle is off, output a zero. When it's on, I want it to output a number between one and ten. My expression looks like this:
expr if($f1 == 0, 0, 1);
if($f1 == 1, 1, 0)
The second expr outlet is going into a bang, then [random 10], then [+ 1], to a number atom.
The main goal of this is to act as a random off / on volume, where the on volume is between one and ten. Hope this all makes sense. Any help would be much appreciated!