[flocking] Changing waveform of top-level ugen

Colin Clark colin at colinclark.org
Fri Dec 4 18:29:25 UTC 2015

Hi Chris,

There's some discussion of this issue here:

https://github.com/colinbdclark/Flocking/issues/128 <https://github.com/colinbdclark/Flocking/issues/128>

I've been doing some testing today and it looks like there is a regression related to replacing top-level unit generators (i.e. ones with single-segment paths like "carrier"), so the interconnect bus-based approach may be your best option until this is fixed in Flocking 0.3.0 with the introduction of a much more flexible unit generator wiring system.


> On Dec 4, 2015, at 1:51 AM, Chris Kahn <chris.a.kahn at gmail.com> wrote:
> Hi everyone,
> I just discovered Flocking and am starting out by generating a constant tone that you can change the waveform of on the fly.
> I used this to generate the synth:
> var mySynth = flock.synth({
>     synthDef: {
>         id: 'carrier',
>         ugen: 'flock.ugen.sin',
>         freq: 220,
>     }
> });
> But I noticed I can't change the waveform with mySynth.set('carrier.ugen', 'flock.ugen.square').
> Is there a simple way to change the waveform of the oscillator while keeping all its other properties the same? Or do I have to embed it deeper in as an input to another ugen and then completely swap it out? Thanks!
> Chris
> _______________________________________________
> flocking mailing list
> flocking at lists.idrc.ocad.ca
> http://lists.idrc.ocad.ca/mailman/listinfo/flocking

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idrc.ocad.ca/pipermail/flocking/attachments/20151204/710705aa/attachment.html>

More information about the flocking mailing list