oscil1Signal Generators:Table Accessoscil1oscil1
Accesses table values by incremental sampling.
Description
Accesses table values by incremental sampling.
Syntaxkres oscil1 idel, kamp, idur [, ifn]Initializationidel -- delay in seconds before oscil1 incremental sampling begins.
idur -- duration in seconds to sample
through the oscil1 table just once. A
negative value will make the table be read from the end to the beginning.
ifn -- (optional) function table
number. tablei, oscil1i require the
extended guard point. The number defaults to -1 which indicates
a sinewave.
Performancekamp -- amplitude factor.
oscil1 accesses values by sampling once through the function table at a rate determined by idur. For the first idel seconds, the point of scan will reside at the first location of the table; it will then begin moving through the table at a constant rate, reaching the end in another idur seconds; from that time on (i.e. after idel + idur seconds) it will remain pointing at the last location. Each value obtained from sampling is then multiplied by an amplitude factor kamp before being written into the result.
Examples
Here is an example of the oscil1 opcode. It uses the file oscil1.csd.
Example of the oscil1 opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
The example will produce the following output:
i1 0.50000
i1 0.20000
i1 0.80000
i1 0.10000
i1 0.90000
i1 0.00000
i1 1.00000
i1 0.50000
See AlsoTable Access