vactrol — Envelope follower unit generator.
iup -- The rise time of the filter, which defaults to 20,
idown -- The fall time of the filter, which defaults to 3000,
Here is an example of the vactrol opcode. It uses the file vactrol.csd.
Example 964. Example of the vactrol opcode.
See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
<CsoundSynthesizer> <CsInstruments> nchnls = 2 0dbfs = 1 instr 1 a1 lfo 0.3, 1, 4 a2 vactrol a1 a3 oscili 2, 440 out a1*a3,a2*a3 endin </CsInstruments> <CsScore> i1 0 3 e </CsScore> </CsoundSynthesizer>
This opcode can reduce zipper noise produced from complex envelope tracking as it smooths the transitions.