Csound Csound-dev Csound-tekno Search About

Re: [Csnd] output amplitude?

Date2021-03-27 17:22
FromTom Peters
SubjectRe: [Csnd] output amplitude?
Dave,
thanx for your thoughts. I'll look into linen and poscil3 .

I got the use of madsr for ADSR envelope from the Getting Started doc: https://csound.com/get-started.html

From the description of madsr: http://www.csounds.com/manual/html/madsr.html,
I understood that the 3rd parameter specifies the relative amplitude of the sustained tone, not the duration of that part of the envelope like the other 3 parameters.

OTOH in the graph that Bill Alves made (thanx Bill):
https://drive.google.com/file/d/1L33t9fYrwRjpp12WvwplpGhcf0MSnUuj/view
I do see that the notes overlap and that the 0.2s of the release is only visible at the last one. The others show a ringing/beat signal.

So can someone explain the use of such an envelope to me?  Both the signal (aSig in my code) and the envelope (kEnv in my code) are I suppose 1D arrays of numbers, so that the multiplication syntax aSig*=kEnv works appears magic.

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here