| >Hi !
>
>I'm new at csound list, and I'm also relatively inexperienced in csound.
>My question is:
>How to get sounds with longer release than midi note duration without
>to aplly 'sub'-scores like
>i1.1 ...
>i1.2 ...
>i1.3 ... or
>without to change the p3 parameter in the score file?
>
>Next question is:
>How can I generate a modulation source ( e.g. a sine lfo) which
>is unattached by k-rate inits ?
>
>
>Thanks , Ronald
>
>--
>=====================================
>
>name: Ronald Wechselberger
>
>e-Mail: wechselberger@fokus.gmd.de
> wechselb@cs.tu-berlin.de
>
>
You can use ihold and turnoff, as follows:
instr 1
ifinal = 1.5 ;duration of final decay
ihold ;turn on instr indefinitely
. ;the code generating your signal here
.
.
kgate linseg 1,p3,1,ifinal,0 ;ramp off after p3 secs
out asignal*kgate
;here, you can either test kgate, as follows:
; if (kgate > 0) kgoto end
;or use a timout for a specific duration, as follows:
timout 0,p3+ifinal,end ;skip to end for p3+ifinal secs
;here we turn off the instr when the final decay is done
turnoff
end:
endin
Note that if you are using a score, you will need to use an f0 card to
extend the total duration to include the final decay, e.g.:
i01 0 1 ...
i01 1 1 ...
f0 3.5 ;last note ends at time 2, extend 1.5 secs for final decay
e
----------------------------------
Russell F. Pinkston, D.M.A.
Associate Professor of Composition
Director, Electronic Music Studios
School of Music
The University of Texas at Austin
Austin, TX 78712
[512-471-0865]
|