NAME

scalegen - multiply every element of a function table by a fixed value


SYNOPSIS

scalegen(table_number, scale)


DESCRIPTION

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.


ARGUMENTS

table_number
The numeric ID for the function table.

scale
The amount to multiply every element of the function table by.


EXAMPLES

   /* 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.)


SEE ALSO

makegen, addgens, multgens, copygen, offsetgen, invertgen, reversegen, shiftgen, quantizegen


AUTHOR

John Gibson <johgibso at indiana edu>