Examples / Techniques / Form
layered-build
Layered build using `mask`: each layer gates in over consecutive cycles. Cycle 0: kick only. Cycle 1: + snare. Cycle 2: + hats. Cycle 3: full.
Play in Cycletron Opens it in the app in your browser, with the visualizers. Desktop browsers only.
// Layered build using `mask`: each layer gates in over consecutive cycles.
// Cycle 0: kick only. Cycle 1: + snare. Cycle 2: + hats. Cycle 3: full.
setbpm(120);
stack(
s("bd*4"),
s("~ sd ~ sd").mask("<0 1 1 1>"),
s("hh*8").gain(0.45).mask("<0 0 1 1>"),
s("cp").mask("<0 0 0 1>")
)