pink.gen
Table generator Functions
gen-sine
(gen-sine)
(gen-sine n)
Generates a sine wave with n size table (default to 2^16 (65536))
gen10
(gen10 tbl-size & pts)
Generates a set of sine waves, given a list of amplitude values for each
harmonic
gen17
(gen17 tbl-size & pts)
Generates a step-wise function from x/y pairs
gen9
(gen9 tbl-size & pts)
Generates a set of sine waves, given a list of lists of values
in the form of [partial strength & phase]. The partial must be a positive
number, but may be fractional. However, fractional partial values will
generate truncated, non-full cycle waveforms. Strengths are in the range of
0.0 to 1.0. Phases are optional and are expressed in 0-360 degrees, defaulting
to 0.
get-sine-value
(get-sine-value phase)
min-max
(min-max tbl)
Returns the min and max values of the given table.
rescale!
(rescale! tbl)
Rescales values in table to -1.0,1.0. Not: this is a destructive change.
table-max
(table-max tbl)
Finds max absolute value within a table