On Dec 30, 2013 10:40 AM, "Philip Galanter" <list@xxxxxxxxxxxxxxxxxx> wrote:
>
> So apparently trying to use something like the following instead of variants can't work on the server...
>
> if ( preset == \oboe ,
> { vcaA = 0.05 ; vcaR = 0.05; vcfOffset = 3; }
> );
> if ( preset == \reverse ,
> { vcaA = 3 ; vcaR = 0.01; }
> );
That's right. The server has no concept of if - then - else.
http://supercollider.sourceforge.net/wiki/index.php/If_statements_in_a_SynthDef
It also has no concept of variables, so, variable assignment inside "if" in a SynthDef is also meaningless.
> So it looks like without variants where I have what I think of as "multiple presets for the same patch" each has to have its own SynthDef.
Or you could go back to the thread and apply one of the patches. Running SC on a beaglebone is a custom environment, so... customize it.
http://thread.gmane.org/gmane.comp.audio.supercollider.devel/59999
Here, there are two approaches. Pick one. Both patches change only one line of code. It should be trivial to do this, and likely easier than restructuring your code.
hjh