[chuck-users] my first chuck program

Rustom Mody rustompmody at gmail.com
Thu Mar 28 13:51:50 EDT 2013

Ive just written a chuck program (my first!) to demo harmonics

If there is some way I could write the code better, Id like to know.

Also from the audio POV can I do better?
Basically I want to show that as I change N from 1 upto 6 the pure sine
wave moves from sounding very mathematical/electrical to sounding more
Any ideas to make it more convincing?

8 => int N;
SinOsc s[N];
[.45,.3,.2,.1,.05,.03,.02,.01] @=> float gains[];
440.0 => float freq;
for (0 => int i; i < N;i++)
  s[i] => dac;
  freq => s[i].freq;
  gains[i] => s[i].gain;
  440.0 +=> freq;

1.5::second => now;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20130328/408510f3/attachment.htm>

More information about the chuck-users mailing list