NAME

quantizegen - quantize the elements of a function table


SYNOPSIS

quantizegen(table_number, quantum)


DESCRIPTION

Call quantizegen from a script to quantize the elements of a function table.

NOTE: Much of the functionality of quantizegen has been duplicated and extended by the makefilter scorefile command in the new (in RTcmix 4.0) table-handle scheme.


ARGUMENTS

table_number
The numeric ID for the function table.

quantum
Define a grid to which table elements snap. Elements will never be closer in value than quantum.


EXAMPLES

   /* Make a table of 20 random numbers between 0 and 1. */
   makegen(1, 20, 20, 0)
   /* Snap the values to a grid dividing the space between
      0 and 1 into 4 parts.
   */
   quantizegen(1, 0.25)

Now the table contains 5 different values: 0, 0.25, 0.5, 0.75, and 1.


SEE ALSO

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


AUTHOR

John Gibson <johgibso at indiana edu>