Document subdivisions
This commit is contained in:
@ -23,6 +23,7 @@ The basic Ziffer notation is entirely written in JavaScript strings (_e.g_ <ic>"
|
||||
| **Pitches** | <ic>0-9</ic> <ic>{10 11 21}</ic> | Numbers or escaped numbers in curly brackets |
|
||||
| **Duration** | <ic>a b c</ic> to <ic>z</ic> | Each letter of the alphabet is a rhythm (see table) |
|
||||
| **Duration** | <ic>0.25</ic> = <ic>q</ic>, <ic>0.5</ic> = <ic>h</ic> | Floating point numbers can also be used as durations |
|
||||
| **Subdivision** | <ic>[1 [2 3]]</ic> | Durations can be subdivided using square brackets |
|
||||
| **Octave** | <ic>^ _</ic> | <ic>^</ic> for octave up and <ic>_</ic> for octave down |
|
||||
| **Accidentals** | <ic># b</ic> | Sharp and flats, just like with regular music notation :smile: |
|
||||
| **Rest** | <ic>r</ic> | Rest / silences |
|
||||
@ -30,7 +31,6 @@ The basic Ziffer notation is entirely written in JavaScript strings (_e.g_ <ic>"
|
||||
|
||||
**Note:** Some features are still unsupported. For full syntax see article about <a href="https://zenodo.org/record/7841945" target="_blank">Ziffers</a>.
|
||||
|
||||
|
||||
${makeExample(
|
||||
"Pitches from 0 to 9",
|
||||
`
|
||||
@ -91,6 +91,16 @@ z1('e 0:4 2:2 4:2 (0 4):2')
|
||||
false
|
||||
)}
|
||||
|
||||
${makeExample(
|
||||
"Subdivided durations",
|
||||
`
|
||||
z1('w [0 [5 [3 7]]] h [0 4]')
|
||||
.scale('major').sound('sine')
|
||||
.fmi(usine(.5)).fmh(2).out()
|
||||
`,
|
||||
false
|
||||
)}
|
||||
|
||||
## Algorithmic operations
|
||||
|
||||
Ziffers provides shorthands for **many** numeric and algorithimic operations such as evaluating random numbers and creating sequences using list operations:
|
||||
|
||||
Reference in New Issue
Block a user