Cabbage Logo
Back to Cabbage Site

Enveloppes division

Hi,

I want to divide two envelopes:

I tried to compute aenv1/aenv2 but it was very noisy. Also, I feel like I should handle the case when aenv2=0.

Do you know how to handle divisions or tricks to compute the ratio of enveloppes with Csound? I read the examples multiple times and I didn’t find a way to do it…

Thanks for your help :slight_smile:

Sorry, can you try to explain to me again what you’re trying to do. I’m on Easter break and my brain seems to have gone into power-down mode :rofl:

Hi Rory,

I finally found what I was searching for! It was the divz opcode.

http://www.csounds.com/manual/html/divz.html

It works for a rate signals and I can specify the return value when the denominator is null.

Julien

Perfect. That’s a most useful opcode!