Csound Csound-dev Csound-tekno Search About

[Csnd] Question re: envelope for score loop

Date2022-08-18 19:49
FromScott Daughtrey
Subject[Csnd] Question re: envelope for score loop
If I have a score loop (here's a simple ex.):

{ 16 CNT
i1 [0 + $CNT*1.5] .25 0.5 9.00
i1 + .  .  9.02
i1 + .  .  9.04
i1 + .  .  9.07
i1 + .  .  9.04
i1 + .  .  9.02
}
 
which in this ex. repeats 16x, and would like to have an envelope control the entire loop such as fading in, holding and fading out, what would be the most practical way to achieve this?

Csound for Android

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

Date2022-08-18 19:57
FromDave Seidel
SubjectRe: [Csnd] Question re: envelope for score loop
Off the top of my head, you might make a separate instrument to handle the output (e.g. using global a-rate variables). Have the output instrument run for the entire time, and implement the envelope there.

On Thu, Aug 18, 2022 at 2:49 PM Scott Daughtrey <stunes6556@gmail.com> wrote:
If I have a score loop (here's a simple ex.):

{ 16 CNT
i1 [0 + $CNT*1.5] .25 0.5 9.00
i1 + .  .  9.02
i1 + .  .  9.04
i1 + .  .  9.07
i1 + .  .  9.04
i1 + .  .  9.02
}

which in this ex. repeats 16x, and would like to have an envelope control the entire loop such as fading in, holding and fading out, what would be the most practical way to achieve this?

Csound for Android

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
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