GEN02GEN02GEN02
Transfers data from immediate pfields into a function table.
Description
This subroutine transfers data from immediate pfields into a function table.
Syntaxf # time size 2 v1 v2 v3 ...Initializationsize -- 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.
Example of the GEN02 routine.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.These are the diagrams of the waveforms of the GEN02 routines, as used in the example:f 2 0 5 2 0 2 0
f 2 0 5 2 0 2 0
f 3 0 5 2 0 2 10 0
f 3 0 5 2 0 2 10 0
f 4 0 9 2 0 2 10 100 0
f 4 0 9 2 0 2 10 100 0
See AlsoGEN17CreditsDecember 2002. Thanks to &namerasmus;, corrected the limit
of the PMAX variable.Use of length zero new in version 6.12