PInRect UGenPatterns quark library


superclass: FilterPattern


based on InRect


PInRect(pattern, y, rect)

pattern pattern x-position (default: 0)

y pattern y-position (default: 0)

rect



// example

s.boot;

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

a.stop

a= Pbind(\dur, 1/6, \legato, 0.2, \amp, PInRect(5, 5, Pseq([Rect(0, 0, 10, 10), Rect(6, 6, 7, 7)], inf)).trace*0.5).play

a.stop