Added arpeggios and cyclic zip operation

This commit is contained in:
2023-03-02 20:45:32 +02:00
parent 6167c4be33
commit bc779b0c81
8 changed files with 230 additions and 66 deletions

View File

@ -52,7 +52,8 @@
// Right recursive list operation
list_op: list (operator right_op)+
right_op: list | number
operator: /([\+\-\*\/%\|\&]|<<|>>)/
//operator: "+" | "-" | "*" | "%" | "&" | "|" | "<<" | ">>" | "@" | "#"
operator: /([\+\-\*\/%\|\&]|<<|>>|@|#|<>)/
// Euclidean cycles
// TODO: Support randomization etc.
@ -72,7 +73,7 @@
oct_change: escaped_octave WS
dur_change: (decimal | char_change)
char_change: dchar_not_prefix+
dchar_not_prefix: /([mklpdcwyhnqaefsxtgujzo](\.)*)(?=[ >])/
dchar_not_prefix: /([mklpdcwyhnqaefsxtgujzo](\.)*)(?=[ >)])/
// Generative rules
random_integer: prefix* random_integer_re