onepole~ transition 0-1 question

matteopennese's icon

Hi all,

is there a reason why the transition in onepole~ from 0 to 1 is so different from 1 to 0?

Using that for ramping, it creates a very notable difference between fade in and fade out behavior.

Could anyone, in case, suggest how to compensate?

Thanks for any help and tip.

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

matteo

Peter McCulloch's icon

Because it's using feedback, the amount of time that it's going to spend in transition is going to be heavily affected by the value in the right inlet. The lower the value, the more it's lowpassed, meaning that the feedback is greater.

Though you can technically use onepole~ in this way (to filter what's essentially a DC signal), I'd suggest using slide~ or rampsmooth~ (or curve~ if your input is control rate). They work much better, and slide~ is almost obscenely efficient considering that you can decouple attack and decay so nicely.

matteopennese's icon

Thank you very much Peter.

matteo