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

Re: [sc-users] sending synth parameters with patterns



Thanks for the response James.  Unfortunately this project has lots of moving parts and Supercollider is just one of them. I have to just use it as it's bundled into CRRMA's Satellite distribution (https://ccrma.stanford.edu/~eberdahl/satellite/) and not get into activities lower than the user level. I'll make do. But please consider making this apparently one line fix in a future release.

thanks,

Phil

p.s. It's the BeagleBoard, not Bone, involved...
 
On Dec 30, 2013, at 3:45 AM, James Harkins <jamshark70@xxxxxxxxx> wrote:

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