lineSignal Generators:Linear and Exponential Generatorslineline
Trace a straight line between specified points.
Description
Trace a straight line between specified points.
Syntaxares line ia, idur, ibkres line ia, idur, ibInitializationia -- starting value.
ib -- value after idur seconds.
idur -- duration in seconds of segment. A zero or negative value will cause all initialization to be skipped.
Performanceline generates control or audio signals whose values move linearly from an initial value to a final one.
A common error with this opcode is to assume that the value of
ib is held after the time
idur1. line does not
automatically end or stop at the end of the duration given. If your
note length is longer than idur seconds,
kres (or ares) will not come
to rest at ib, but will instead continue to rise
or fall with the same rate. If a rise (or fall) and then hold is
required that the linseg opcode should be
considered instead.
Examples
Here is an example of the line opcode. It uses the file line.csd.
Example of the line opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoLinear and Exponential Generators