Additive Synth, dynamic array size

this thread from last week may be useful! Is it possible to make a synthdef to deal with a variable number of oscillators?

If you are not using patterns I like to use a function like so:

~someOvertones = {|arraySize fundamental|
   { arraySize.collect{ |i| SinOsc.ar( fundamental * (x +1) 0, 0.05) }}.play
}