NAME

setexp - create function table 1 with exponential line segments


SYNOPSIS

setexp(time1, value1, time2, value2, ... timeN, valueN)


DESCRIPTION

Call setexp from a script to make function table 1 with exponential line segments. Most RTcmix instruments require function table 1 to contain the amplitude envelope, and setexp is a convenient way to do this.


ARGUMENTS

Arguments are any number of time,amplitude pairs. These define points through which exponential line segments are drawn.

Think of the duration of the function table as the difference between the first time and the last time. The shape created by the table is scaled to fit the duration of each note that follows.

Successive times must be in ascending order. To make an instantaneous change of amplitude, use the same time for two adjacent pairs.


EXAMPLES

   setexp(0, 0, 1, 1)

draws an exponential ramp from 0 to 1.


NOTES

setexp uses gen 5 internally to make the table.

The table size for setexp is 1000, unless you first call setline_size to change it.


SEE ALSO

makegen, gen5, setline, setline_size