# Stacking effects inside ur

Hello

I have this pattern

d1
\$ within (0.25, 0.50) (striate 3)
\$ within (0.51, 0.78) (plyWith 10 (|* (range 1.02 1.8 rand)) . (# gain 0.8))
\$ within (0.8, 1) (plyWith 4 (|* gain 0.98) . (# gain 1.1) . (|* legato 0.9))
\$ s "{bd*4 sd:2, hh27*8}"

This one works, and I want to switch from this to a variation using ur

let pats =
[
("a",
stack [
s "{bd*4 sd:2, hh27*8}"
]
),
("b",
stack [
s "{bd*4 sd:2, hh27*6}"
]
)
]
fx = [("glitch",  (within (0.25, 0.50) (striate 3)) .
(\$ within (0.51, 0.78) (plyWith 10 (|* (range 1.02 1.8 rand)) . (# gain 0.8))) .
(\$ within (0.8, 1) (plyWith 4 (|* gain 0.98) . (# gain 1.1) . (|* legato 0.9)))),
("glicht", (within (0, 0.11) (plyWith 6 (|* gain 0.93)))
(\$ within (0.12, 0.50) (striate 8)) .
(\$ within (0.51, 0.78) (plyWith 10 (|* (range 1.02 1.8 rand)) . (# gain 0.8))) .
(\$ within (0.8, 1) (plyWith 4 (|* gain 0.98) . (# gain 1.1) . (|* legato 0.9))))
]
in
d1 \$ ur 4 [a:glitch, b:glicht] pats fx

And that, well, that doesn't work at all

Initially, I wanted to use xfade but the crossover between several plyWith and striate always saturate my buffers - I'm maxed out at 1024, and my oLatency is 0.3 if I remember correcly.

So, first question : should I adjust my oLatency, or is buffer saturation an expected behavior in this case ?

The main one : I tried several things but I'm a bit stuck here. How to stack alterations in this case, using ur ?

And the last one : is there another way of stacking stuff like this ? I always end with loads of brackets. It's not that bad, I have syntax colors, but I wouldn't mind to use less brackets

 initially i didn't use \$ before every within, it's just one of the multiple things I tried over the last few hours

 this bit,

in
d1 \$ ur 4 [a:glitch, b:glicht] pats fx

initially was

in
d1 \$ ur 4 "a:glitch b:glicht" pats fx

I think the latter would work, but I also think the biggest issues are upwards