tempo 4*90 init = A:bar [kick] bar = +... ...- +... .... [snare] bar = .... +... .... +... // Controls: // Shift-Enter to play or reload while playing // Shift-Enter-Enter to stop // Syntax: // . silence // - + * # quiet, medium, loud, extra loud hit // // "comment" - disabled line // ** Uncomment (remove // from the beginning) each of these example lines and reload // to see their effect. // [hat] bar = ..-- ..-. ..-. ..-. // Basic hi hat // [hat] bar = [3/4](.-- .-. .-- ..-) // Tuplets // [tom ride] bar = *... *... *... *... // Multiple instruments // bar = *... *... *... *... // All instruments // ** When multiple rules apply, it chooses between them randomly on each repetition. // ** You can make "phrases" with structured repetition: // (Disable the init line at the top otherwise some instruments will only play 1 bar) // // init = A:bar A:bar A:bar B:bar // 3 identical bars and then a different one // ** Or you can define and mix different symbols. // fill = A:bar // fill = ++.* .*.+ .+.- ++-- // init = A:bar B:bar A:bar C:fill // ** Build up complex beats from simple pieces // bar = A:halfbar B:halfbar // [kick] halfbar = +... .... // [kick] halfbar = +... ...+ // [kick] halfbar = .-+. .... // [snare] halfbar = .... +... // [snare] halfbar = ...- .-.. // [ride] halfbar = +... +... // [ride] halfbar = ..+. ..+. // ** You can define recursive rules, too (woah). // bar = [2/1](A:bar A:bar)
Play