[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] array dynamically in synthdef



But you understand why you can't change the array size, right?

A SynthDef has a preset number of unit generators, determined when you compile and send the SynthDef to the server. The server has no facility to add more ugens or remove them from a synthdef.

With DynKlan*, each freq array element makes a separate oscillator or filter ugen. Making the array bigger or smaller means more or fewer ugens. This can be done only in the language at synthdef compile time.

Starting a synth node with a differently-sized array cannot make the synthdef bigger or smaller.

Btw in this example (down) if I put more than 570 partials I have an error (FAILURE /d_recv failed). This is very annoying if you want to use a series of Dynklank (one DynKlank to filter another and other etc.).

The SynthDef is too big to transfer by OSC. Use .load or .store instead.

hjh


--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman