Currently working my way through a boom-bap style beat and I want to have the first bit repeat 3x and then the last bit play once - it makes sense to do this through a cat since they come one after another, but it seems like there should be some shorthand to replay the first stack 3x without having to copy paste. Is there currently a way to do this ?
The pattern in question:
d1 $ cat [
stack [
sound "bd:1 bd:1 cpu:2 ~",
--sound "~ ~ ~ dbass:1" # speed "0.6" # gain 0.5 # cut 2,
sound "~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ bd:1",
sound "~ claus ~ foley:2" # gain 0.4,
--swingBy (1/3) 4 $ sound "hh:7*4" # speed "0.5" # hcutoff "7000" # gain "1.3" # gain sine,
sound "~"
],
stack [
sound "bd:1 bd:1 cpu:2 ~",
--sound "~ ~ ~ dbass:1" # speed "0.6" # gain 0.5 # cut 2,
sound "~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ bd:1",
sound "~ claus ~ foley:2" # gain 0.4,
--swingBy (1/3) 4 $ sound "hh:7*4" # speed "0.5" # hcutoff "7000" # gain "1.3" # gain sine,
sound "~"
],
stack [
sound "bd:1 bd:1 cpu:2 ~",
--sound "~ ~ ~ dbass:1" # speed "0.6" # gain 0.5 # cut 2,
sound "~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ bd:1",
sound "~ claus ~ foley:2" # gain 0.4,
--swingBy (1/3) 4 $ sound "hh:7*4" # speed "0.5" # hcutoff "7000" # gain "1.3" # gain sine,
sound "~"
],
stack [
sound "bd:1 ~ [cpu:2!2 cpu:3] ~",
sound "~ ~ ~ dbass:1" # speed "0.5" # gain 0.5 # cut 2,
sound "~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ bd:1",
sound "~ claus ~ foley:2" # gain 0.4,
--swingBy (1/3) 4 $ sound "hh:7*4" # speed "0.5" # hcutoff "7000" # gain "1.3" # gain sine,
sound "~"
]]