scalegen - multiply every element of a function table by a fixed value
scalegen(table_number, scale)
Call scalegen from a script to multiply every element of a function table by a fixed value. Note that this could make a table whose values fall outside of the range from -1 to 1.
/* Make a table of random numbers between 0 and 1. */ makegen(1, 20, 100, 0)
/* Scale the random numbers so they fall between 0 and 0.1. */ scalegen(1, 0.1)
(Yes, this can be done directly inside gen20, but it's only an example.)
makegen, addgens, multgens, copygen, offsetgen, invertgen, reversegen, shiftgen, quantizegen