[flocking] sequencers with different synths, changing mult in

rex malebka rexmalebka at krutt.org
Wed Jul 3 16:30:25 UTC 2019


Hello

I'm learning javascript and I'm making a sequencer tidalcycles alike and 
I wanted to use flocking.

Is it possible to make a sequencer specifying the instrument like would 
do in Pbind with SuperCollider, something like:


Pbind(         \instrument, Pseq([\synth1,  \synth2, \synth3], inf), 
         \dur, Pseq([0.75, 0.25, 0.25, 0.25, 0.5], inf),         
\legato, Pseq([0.9, 0.3, 0.3, 0.3, 0.3], inf),         \amp, 0.5     )


tried with this, but didn't worked:

flock.synth({     synthDef: {         ugen: {             ugen : 
"flock.ugen.sequencer",             durations: [0.25,0.25],             
values: ["flock.ugen.sinOsc", "flock.ugen.triOsc"],             loop:1, 
             options: {                 resetOnNext: true             } 
         },         freq: {             ugen: "flock.ugen.sequencer", 
             durations: [0.25, 0.25, ],             values: [1, 9/8], 
             mul: 440,             loop: 1.0,             options: { 
                 holdLastValue: true             }         },         
mul: {             ugen: "flock.ugen.envGen",             envelope: { 
                 levels: [0, 1, 0],                 times: [0.03, 0.2] 
             },             gate: {                 ugen: 
"flock.ugen.sequencer",                 durations: [0.25, 0.25], 
                values: [1, 1],                 loop: 1.0, 
                 options: {                     resetOnNext: true 
                 }             }         }     } });


thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inclusivedesign.ca/pipermail/flocking/attachments/20190703/b09e5bae/attachment.html>


More information about the flocking mailing list