2 summary:: gated stream advances only when an event key is true
4 categories:: Streams-Patterns-Events>Patterns>Repetition
8 Pgate advances its subpattern whenever strong::key:: is true. Pgate must be used within an Event pattern.
13 // Pn advances Pgate each time its subpattern is repeated
17 \degree, Pn(Pseq((0..7)), inf, \step),
18 \mtranspose, Pgate(Pwhite(0,5), inf, \step),
24 // Two different Pgates advanced at two different rates
30 \foo, Pn(Pseq((0..2)),inf, \step1),
31 \degree, Pn(Pseq((0..7).mirror), inf, \step),
32 \ctranspose, Pgate(Pwhite(0,5), inf, \step) +
33 Pgate(Pseq([0,7,0,-7], inf), inf, \step1),