PGate UGenPatterns quark library


superclass: PLatch


based on Gate


PGate(pattern, trig)

pattern

trig (default: 0)



// example

s.boot;

a= Pbind(\dur, 1/3, \legato, 0.4, \midinote, PGate(Pseq([0, 2, 4, 5], inf), Pseq([0, 0, 0, 1, 1, 1, 1, 1], inf)).trace*5+50).play

a.stop

a= Pbind(\dur, 1/6, \legato, 0.2, \amp, PGate(PSaw(64, 0.5, 0.5), PSinOsc(8)).trace*0.5).play

a.stop