adamrenklint / qwak

Definition and parser for qwak, a simple and expressive minimal text syntax for programming step-based web audio event sequences
https://www.npmjs.com/package/qwak
Other
10 stars 2 forks source link

Improve repeater symbols #4

Closed adamrenklint closed 8 years ago

adamrenklint commented 9 years ago

Currently repeater symbols only work when placed directly after a note, making them useless when using blocking or non-blocking spacer symbols to define the note duration.

Change the repeater symbols to always look at the last real note, ignoring spacers:

/J__???;

J  1.1.01  dur144  vol100
J  1.2.49  dur144  vol 80
J  1.4.01  dur 96  vol 60
adamrenklint commented 8 years ago

This change is not as clear cut as I initially thought: