NAME

offsetgen - add a fixed value to every element of a function table


SYNOPSIS

offsetgen(table_number, offset)


DESCRIPTION

Call offsetgen from a script to add a fixed amount to every element of a function table. 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.

offset
The amount to add to every element of the function table.


EXAMPLES

   /* Make a sine wave at half amplitude, ranging between
      -0.5 and +0.5.
   */
   makegen(1, 9, 1000, 1, 0.5, 0)
   /* Make it a unipolar sine wave, ranging between 0 and 1. */
   offsetgen(1, 0.5)


SEE ALSO

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


AUTHOR

John Gibson <johgibso at indiana edu>