addgens - add two function tables to create a new one
addgens(new_table, table_A, table_B [, normalize ])
Call addgens from a script to make a new function table by adding 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 a straight line from 0 to 1. */ makegen(1, 18, 1000, 0, 0, 1, 1)
/* Make random numbers between -0.1 and 0.1. */ makegen(2, 20, 100, 0, 0, -0.1, 0.1)
addgens(3, 1, 2)
Table number 3 will contain a line from 0 to 1, with random variations of as much as 0.1 from a straight line. The table will have 1000 elements.
makegen, multgens, copygen, offsetgen, scalegen, invertgen, reversegen, shiftgen, quantizegen