line ramp to go to 0 from current value

darklow's icon

Hey guys,

what i need to make is a panic button that when pressed, lowers all volumes in my patch to 0, or maybe 20, over 500 miliseconds. As far as i can tell the line or line~ object will only go from whatever value you send it in a message, and i cant figure out a way to the volume to go to 0 from whatever volume its on at the moment.

what i could do is send a message saying go from 50 to 0 but then whatever volumes that are on less than 50 would jump up to it first.

Tim Lloyd's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You can do it with line/line~ but I would go for a smoothed on/off switch personally:

darklow's icon

nice one man cheers! will take a while to implement it in my patch coz i have about 10 processes at the same time which i normally wouldnt have but its for a college project.

thanks again!

mzed's icon

Here's a version with line. rampsmooth~ is also a handy object in this context.

Max Patch
Copy patch and select New From Clipboard in Max.

mz