multgens - multiply two function tables to create a new one
multgens(new_table, table_A, table_B [, normalize ])
Call multgens from a script to make a new function table by multiplying corresponding points from two existing tables. These two tables do not have to be the same size. The new table will be as large as the larger of the two existing tables.
/* Make six cycles of a sine wave. */ makegen(1, 10, 1000, 0, 0, 0, 0, 0, 1)
/* Make an envelope that fades in and out. */ makegen(2, 6, 200, 0, 0, 1, 1, 2, 0)
multgens(3, 1, 2)
Table number 3 will contain six cycles of a sine wave, with amplitude following the fade in/out envelope shape. The table will have 1000 elements.
makegen, addgens, copygen, offsetgen, scalegen, invertgen, reversegen, shiftgen, quantizegen
John Gibson <johgibso at indiana edu>