diff --git a/src/documentation/ziffers.ts b/src/documentation/ziffers.ts index 7210b28..fcddd53 100644 --- a/src/documentation/ziffers.ts +++ b/src/documentation/ziffers.ts @@ -26,6 +26,7 @@ The basic Ziffer notation is entirely written in JavaScript strings (_e.g_ " | **Octave** | ^ _ | ^ for octave up and _ for octave down | | **Accidentals** | # b | Sharp and flats, just like with regular music notation :smile: | | **Rest** | r | Rest / silences | +| **Repeat** | :1-9 | Repeat the item 1-9 times | **Note:** Some features are still unsupported. For full syntax see article about Ziffers. @@ -78,6 +79,17 @@ z1('e 0 s 1 b2 3 e 0 s 1 b2 4') false )} +${makeExample( + "Repeat items n-times", + ` +z1('e 0:4 2:2 4:2 (0 4):2') + .scale('major').sound('sine') + .fmi(usine(.5)).fmh(2) + .delay(0.5).delayt(1.25) + .sustain(0.1).out() +`, + false +)} ## Algorithmic operations