Tagged: parser
Part 5: A Small Language for Rhythm
Write beats as text: bd [~ bd] sd ~ instead of nested function calls. A tokenizer, a parser and a compiler turn the text into the patterns of part 4, a mistake is marked at its place under the input, and a broken pattern leaves the last good one playing.
Intermediate40 minPart 6: Speed, Length and Chance
Seven additions to the mini-notation: * and / for speed, @ and _ for length, ! for repeats, ? for chance and (3,8) for euclidean rhythms. Steps get a weight, random numbers become a function of time, and an algorithm spreads hits evenly over a bar.
Intermediate40 minPart 7: Choices, Polymeter and Changing Speeds
Finish the mini-notation: a choice between several sequences that is made anew in every cycle, layers of different length that drift against each other, and speeds that change from cycle to cycle. The part ends with a reference of every symbol.
Intermediate20 min