NAME

shiftgen - change the phase of a function table


SYNOPSIS

shiftgen(table_number, shift)


DESCRIPTION

Call shiftgen from a script to shift the elements of a function table from left to right, or from right to left, thereby changing the phase of the table.

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


ARGUMENTS

table_number
The numeric ID for the function table.

shift
The number of table slots by which to shift the elements of the table. Elements that would run off the end of the table wrap around to the beginning of the table. Positive values of rotate move elements to the right; negative values, to the left.


EXAMPLES

   /* Make a table of 10 random numbers. */
   makegen(1, 20, 10, 0)
   /* Shift the values to the right by 5 table slots. */
   shiftgen(1, 5)
   /* Shift the values to the left by 2 table slots. */
   shiftgen(1, -2)


SEE ALSO

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


AUTHOR

John Gibson <johgibso at indiana edu>