cossegb
Trace a series of line segments between specified absolute points with cosine interpolation.
Syntax
Initialization
ia -- starting value.
ib, ic, etc. -- value at tim1 seconds, etc.
itim1 -- time in seconds of end of first segment. A zero or negative value will cause all initialization to be skipped.
itim2, itim3, etc. -- time in seconds at the end of subsequent segments. Give times in increasing order. Equal times cause an immediate jump to the next value.
Performance
Times use whole samples at audio rate and whole control periods at control rate. Breakpoints that fall on the same output step cause an immediate jump; later segments still run.
These units generate control or audio signals whose values can pass through 2 or more specified points. The last tim value may or may not equal the instrument's performance time: a shorter performance will truncate the specified pattern, while a longer one will cause the last value to be repeated until the end of the note.
Examples
Here is an example of the cossegb opcode. It uses the file cossegb.csd.
See also
Linear and Exponential Generators
Credits
Author: John ffitch
Aug 2012
New in version 5.18