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 musical
Any ideas to make it more convincing?


Code
--------
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;