GEN02
Transfers data from immediate pfields into a function table.
Syntax
Initialization
size -- number of points in the table.
The maximum tablesize is 16777216 (224) points. The value may be given as zero, in which case the number of values decides the table length.
v1, v2, v3, etc. -- values to be copied directly into the table space. The values copied may include the table guard point; any table locations not filled will contain zeros.
Note
If p4 (the GEN routine number) is positive, the table will be post-normalized (rescaled to a maximum absolute value of 1 after generation). A negative p4 will cause rescaling to be skipped. You will usually want to use -2 with this GEN function, so that your values are not normalized.
Examples
Here is an example of the GEN02 routine. It uses the files gen02.csd.
These are the diagrams of the waveforms of the GEN02 routines, as used in the example:



See Also
Credits
December 2002. Thanks to Rasmus Ekman, corrected the limit of the PMAX variable.
Use of length zero new in version 6.12