line
Trace a straight line between specified points.
Syntax
Initialization
ia -- 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.
Performance
line generates control or audio signals whose values move linearly from an initial value to a final one.
Note
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.