ah sorry, yes
i want to read a wavetable, say 128 steps and calculate the gain structure to aproximate this wavetable with sine waves.
the idea behind this is to get a different sound from wavetables, use low resolution wavetables to get nice sounds (waldorf microwave xt)
so for a saw wave i would want the following numbers.
1 0.5 0.3333 0.25 0.2 and so on…
how to do this for an arbitrary input wavetable?
i looked at the fft examples but it is not clear to me how i would do this with a single wavetable (of known size)
or if there is a “simpler” (without fft) possibility that would be great.
Can you elaborate a bit what you want to do??
I think you better process the table rather than go from one domain to another.
inverse the phase by multiplying by -1,
you can "reverse" the table by reading it from back to front.