I remember there was a way you could flip (invert) an adsr envelope from the old forum. Forget how to do it. Something to do with a negative expression. Any help? Cheers.

1 Like

`1-x` where x = envelope

1 Like

Awesome. Thanks!

1 Like

Thereâ€™s another way to do it with a specific attenuverter that will allow you to get both positive and negative portions. Itâ€™s called the Positive Domain Attenuverter. It might not be what youâ€™re looking for, but it allows you to have both regular and inverted versions.

1 Like

Iâ€™ll look into that as well. What Iâ€™m after is an exponential release but I want the curve to start fat. I multiplied the output from an adsr on itself. That got me a sharp start. Now Iâ€™m looking for a way to flip the curve so I get a sharp end.

1 Like
1 Like

Oh perhaps you want @stschoenâ€™s Variable Curve ADSR Envelope Generator

2 Likes

Yeah, that variable curve is what I want to achieve. Iâ€™m trying to wrap my head around on how it works. I canâ€™t seem to use it where I need it yet. So Iâ€™m trying to build my own from the ground up so I understand everything. I may be in over my head though. ADSRâ€™s seem complex.

1 Like

The problem is you canâ€™t apply the same expression to the output of the entire envelope. You have to use different expressions for each period of the curve.

@stschoen can explain it better, but he essentially is making an envelope from scratch using timers. Each section has its own timer and its own curve.

1 Like

K. Iâ€™ll start pulling those patches apart and studying them. I might post a patch of where Iâ€™m stuck later if I canâ€™t make sense of things. Thanks again!

1 Like

Now that I think about it, I suppose Iâ€™m trying to invert the curve â€śhorizontallyâ€ť and upside down.

1 Like

Ok, I got the Variable Curve ADSR Envelope Generator to work for me. It seemed to want a wider gate signal. Sweeeeeeeeet!

1 Like

Are you trying to create an â€śsâ€ť shaped curve? There are a number of functions that will produce an â€śsâ€ť shape. Audulus has smoothstep() which produces an s curve
Iâ€™m not sure which way you want the curve to go.

1 Like

So that is what I was trying to say. I wanted a convex curve.

2 Likes

But I played around with your Variable Curve ADSR Envelope Generator in another patch and figured out how to use it properly. So, I donâ€™t really have to do this flipping thing anymore. It would be sweet if you could simply make the curve thoughâ€¦

1 Like

Thatâ€™s why I built the variable curve unit. I wanted to be able to go from exponential to linear to logarithmic (convex) for each segment. The first segment is attack, second is decay and third is release. The release starts at whatever level the curve is at when the gate goes low, so with short gates if you have a non-zero attack the output may not rise very far before it goes into release. As @biminiroad said, you canâ€™t really apply the same curve to the whole ADSR envelope. This unit also has the advantage of being able to run â€śupside downâ€ť where it starts high, goes low and then high again.

2 Likes

Thanks for making it. Probably would have taken me years to figure it all out.

2 Likes

I still use the variable ADSR quite a bit along with the PEG you made not too long ago.

3 Likes

You might like this little utility that does basically that to any 0-1 signal you run through it.
Curve Utility.audulus (10.9 KB)

3 Likes