Hi everyone,
I’m trying to generate a weighted sum of pre-existing tables from the orchestra.
For that I’m using ftgen with GEN18, which does nothing but crushes Cabbage. Am I looking in the right direction with it?
The idea is to have an array of weights for 20 tables and mix them like that.
Here’s the code:
instr calculateWeightedTable
ftset 50, 0
ftset 48, 0
iCounter = 1
while iCounter< lenarray(gSFiles) do
tablecopy 50, iCounter
iCurWeight init giWeights[iCounter-1]
iTabNrA ftgen 48, 0, 2621434, 18, 50, 1, 0, 262143, iCounter, iCurWeight,0,262143
tablecopy 50, 48
iCounter += 1
od
turnoff
endin
Thank you in advance!