Whoops...
Try put that 'index++' at the beginning of the while loop (we want the
fundamental=1 not 0).
Also, it seems that Gen9 tops out at 17 harmonics? Or maybe I am hearing
some kind of foldover/aliasing thing here. Try different values for
partials to hear what I mean.
Later
On Sun, May 16, 2010 at 2:18 PM, kurt
something like this?... <code>
Phasor phs => Gen9 gbuzz => dac;
30 => int partials; 0 => int index; float coefs[partials*3];
while (index < partials) { coefs << index $float;//which harmonic coefs << 1.;//equal amplitude coefs << 90.;//cosine = 90 degrees index++; }
coefs => gbuzz.coefs;
second => now;
</code>
I am not sure if that is exactly what gbuzz does but it at least gives you an idea of how to do additive synthesis with Gen9. Hope that helps. Later, Kurt
On Sun, May 16, 2010 at 1:11 PM, Brutus Gates
wrote: Hi,
Can anyone give a hint to a noob about how to use GenX to implement gbuzz or Gen11? _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- -------------------------------------------------- www.kurtkotheimer.com --------------------------------------------------
-- -------------------------------------------------- www.kurtkotheimer.com --------------------------------------------------