Got as far as making a lambda before I saw the answer right at the top.
Lists of the above - [“/foo/bar”, “baz”, /0-9.*/] - will recurse down and work through the internal filter parameters as if they were in the top level.
live_loop :dr do
density dice(2) do
sample ["drum_",tick],sustain:0,release: 0.5,pan:0.2* (-1)**dice(2)
sleep 0.5
end
end
live_loop :ht do
density dice(2) do
sample ["hat_",tick],sustain:0,release: 0.25,pan:0.4*(-1)**dice(2)
sleep 0.25
end
end