Bang messages

c4liam's icon

i have a patch that when it bangs it turns off the volume for the patch when it is in a certain range.is there a way when it is outside this range that the volume would go back to its original position

Chris Muir's icon
c4liam's icon

ya i used split but once it bangs and the volume goes off it never comes back on when it goes outside the range given in split

brendan mccloskey's icon

Well, you're banging something in your patch that turns the volume off; use that bang with a [set $1] message to a number box to 'store' the last value from the gain slider's right output. Then use this stored value when you reinitialize the slider. Might want to look at [line~] while you're at it.

Chris Muir's icon
Max Patch
Copy patch and select New From Clipboard in Max.