trigger an adsr~ by moving a dial

darkInteger's icon

Hey Guys!

I would like to trigger an adsr~ by moving a dial, when I turn the dial it is opened but as soon as it is not turned th adsr~ is closed.
How can I patch that?

Source Audio's icon

bang 1 when dial starts sending values, bang 0 when it stops sending values.
use onebang and delay (set to time of inactivity detection)

darkInteger's icon

thanks!!!

could you send an example, I cant figure out the last part (set to time of inactivity detection)?

Source Audio's icon

delay resets if it receives bangs in shorter interval then set time,
and that way produces output bang only if it receives no bang
at input in set time.
Change that 150 ms to value that fits your needs best.

darkInteger's icon

Thanks!!!!!
You rock!!!!