Hi folks, I’m still coming up to speed on all the csound improvements of the last 10 years, and wanted to check whether something I have working in older style code is still the best way to do it, or if there are cleaner options now.
This is my always on envelope, with tigoto branching. It’s using the assembly style jumps and is working, so really asking for purposes of just making the coding more elegant.
thanks!
; Env1 - env that when retriggered from i event, resumes from where it left off
instr Env1
ihold
tigoto tied_init
; first pass only init code
istart init 0.001
kenv init 0.001
igoto continue
; init code for all passes after the first (which are tied)
; capture where kenv left off to be next start point
tied_init:
istart = i(kenv)
continue:
kenv linseg istart, 0.01, 1, p3, .8, 0.5, 0.01
; write the output to its patch cord
chnset kenv, “env_1”
endin
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