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

Re: [sc-users] array dynamically in synthdef



Thank you James!

Ok I understand is not possible because if I'm right a SynthDef is a sort of compiling structure that you can't change.... I just try...

.load works!!!, not .store.,

Why all this different commands .load, .store, .memStore... Yes I have to RTFM or something like this!! But I think in SC there too much things that you can do with different method and is a little confusing for a beginner, but I love it!!

p


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