
how to calculate the envelope curve of 4 different waves?

alcarar
Dear all,
I'm trying to calculate the envelope curve for 4 different waves
Do you know how to do it?
Enclosed to this you will find the .pxp file
Thank you
Best regards
Here is a crude function that should do the job, taking into account the fact that your wave scaling is negative.
You can invoke this on the command line using:
env4('Peak 00','Peak 10','Peak 20','Peak 30',8,-1,500)
Edit:
If you are actually seeking the sum of all the waves then the code is even simpler:
I hope this helps,
A.G.
December 15, 2021 at 11:49 am - Permalink
Perfect!, Thank you
December 16, 2021 at 12:04 am - Permalink