triglinsegSignal Generators:Linear and Exponential Generatorstriglinsegtriglinseg
Triggers a series of line segments between specified points.
Description
Triggers a series of line segments between specified points.
Syntaxares triglinseg kTrig, ia, idur1, ib [, idur2] [, ic] [...]kres triglinseg kTrig, ia, idur1, ib [, idur2] [, ic] [...]Initializationia -- starting value.
ib, ic, etc. -- value after dur1 seconds, etc.
idur1 -- duration in seconds of first segment.
idur2, idur3, etc. -- duration in seconds of subsequent segments.
PerformancekTrig -- trigger value. Will trigger playback of envelop when kTrig is equal 1
These units generate control or audio signals whose values can pass through 2 or more specified points. The sum of dur values may or may not equal the instrument's performance time: a shorter performance will truncate the specified pattern. Triggering the envelop while it is already playing will cause the envelop to jump to the start and play again. This might cause a pop or a click. It is best to wait till the envelope has ended before retriggering it.
Examples
Here is an example of the triglinseg opcode. It uses the file triglinseg.csd.
Example of the triglinseg opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoLinear and Exponential GeneratorsCreditsAuthor: Rory Walsh2021