envlpxSignal Generators:Envelope Generatorsenvlpxenvlpx
Applies an envelope consisting of 3 segments.
Descriptionenvlpx -- apply an envelope consisting of 3 segments:
stored function rise shapemodified exponential pseudo steady stateexponential decaySyntaxares envlpx xamp, irise, idur, idec, ifn, iatss, iatdec [, ixmod]kres envlpx kamp, irise, idur, idec, ifn, iatss, iatdec [, ixmod]Initializationirise -- rise time in seconds. A zero or negative value signifies no rise modification.
idur -- overall duration in seconds. A zero or negative value will cause initialization to be skipped.
idec -- decay time in seconds. Zero means no decay. An idec > idur will cause a truncated decay.
ifn -- function table number of stored rise shape with extended guard point.
iatss -- the ratio of the final value
of the pseudo-steady-state period to the value at its beginning
(i.e the attenuation from the end of the rise segment
to the start of the decay).
A ratio greater than 1 causes an exponential growth and
a ratio less than 1 creates an exponential decay. A ratio of 1
will maintain a true steady state at the last rise value.
Note that this attenuation is not at a fixed rate (as in a piano),
but is sensitive to a note's duration.
However, if iatss is negative (or
if steady state < 4 k-periods) a fixed attenuation rate of
abs(iatss) per second
will be used. 0 is illegal.
iatdec -- the ratio of the value
at the end of the decay period to the value at its beginning (the end
of the steady-state segment) . It must be positive and is normally of the
order of .01. A large or excessively small value is apt to produce a cutoff
which is audible. A zero or negative value is illegal.
ixmod (optional, between +- .9 or so) --
exponential curve modifier, influencing the steepness of the
exponential trajectory during the steady state. Values less than
zero will cause an accelerated growth or decay towards the
target (e.g. subito piano). Values greater
than zero will cause a retarded growth or decay. The default
value is zero (unmodified exponential).
Performancekamp, xamp -- input amplitude signal.
Rise modifications are applied for the first
irise seconds, and decay from time
idur - idec. If these periods are separated
in time there will be a steady state during which
amp will be modified by the first
exponential pattern.
If the overall duration idur is exceeded in performance,
the final decay will continue on in the same direction, tending
asymptotically to zero.
Examples
Here is an example of the envlpx opcode. It uses the file envlpx.csd.
Example of the envlpx opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoEnvelope GeneratorsCreditsThanks goes to &nameluis; for pointing out a mistake with iatss.