diff --git a/src/Documentation.ts b/src/Documentation.ts index 5b27951..d60b6f9 100644 --- a/src/Documentation.ts +++ b/src/Documentation.ts @@ -1180,19 +1180,31 @@ The basic Ziffer notation is entirely written in JavaScript strings (_e.g_ (3 2 1)+(2 5) Cartesian operation using + operator (All javascript operators supported). * **Random numbers:** (4,6) Random number between 4 and 6 ## Keys and scales -Ziffers supports all the keys and scales. Keys can be defined by using scientific pitch notation, for example 'F3'. Western style (1490 scales) can be with scale names named after greek modes and extended by William Zeitler (see full list): +Ziffers supports all the keys and scales. Keys can be defined by using [scientific pitch notation](https://en.wikipedia.org/wiki/Scientific_pitch_notation), for example F3. Western style (1490 scales) can be with scale names named after greek modes and extended by [William Zeitler](https://ianring.com/musictheory/scales/traditions/zeitler). You will never really run out of scales to play with using Ziffers. Here is a short list of some possible scales that you can play with: -* Lydian -* Mixolydian -* Aeolian -* Locrian -* Ionian -* Dorian -* Phrygian -* Soryllic -* Modimic -* Ionalian -* ... +| Scale name | Intervals | +|------------|------------------------| +| Lydian | 2221221 | +| Mixolydian | 2212212 | +| Aeolian  | 2122122 | +| Locrian | 1221222 | +| Ionian | 2212221 | +| Dorian | 2122212 | +| Phrygian | 1222122 | +| Soryllic | 11122122| +| Modimic | 412122 | +| Ionalian   | 1312122 | -or by most traditional western names: + -* Major -* Minor -* Minor pentatonic -* Major pentatonic -* Harmonic minor -* Harmonic major -* Melodic minor -* Melodic major -* Whole -* Blues minor -* Blues major -* ... +You can also use more traditional western names: + + +| Scale name | Intervals | +|------------|------------------------| +| Major | 2212221 | +| Minor | 2122122 | +| Minor pentatonic  | 32232 | +| Harmonic minor | 2122131| +| Harmonic major | 2212131| +| Melodic minor | 2122221| +| Melodic major | 2212122| +| Whole | 222222 | +| Blues minor | 321132 | +| Blues major | 211323 | Microtonal scales can be defined using Scala format or by extended notation defined by Sevish Scale workshop, for example: -**Young:** 106. 198. 306.2 400.1 502. 604. 697.9 806.1 898.1 1004.1 1102. 1200. -**Wendy carlos:** 17/16 9/8 6/5 5/4 4/3 11/8 3/2 13/8 5/3 7/4 15/8 2/1 - -See examples for how to use scales. +- **Young:** 106. 198. 306.2 400.1 502. 604. 697.9 806.1 898.1 1004.1 1102. 1200. +- **Wendy carlos:** 17/16 9/8 6/5 5/4 4/3 11/8 3/2 13/8 5/3 7/4 15/8 2/1 ## Methods @@ -1288,7 +1302,6 @@ z1('0 3 2 4',{key: 'D3', scale: 'minor pentatonic'}).sound('sine').out() ${makeExample( "Duration chars", ` -z1('s 0 e 1 q 2 h 3 w 4').sound('sine').scale("locrian").out() `, true )} @@ -1322,17 +1335,6 @@ z1('q 0 3 {10 14} e 8 4 {5 10 12 14 7 0}').sound('sine') true )} -${makeExample( - "Scale arrays", - ` -z1('q 0 6 3 2 e 3 6 q 3 6 s 8 4 2 1').sound('sine') -.fmi([1,2,4,8].pick()) -.scale([2,1,1,2,2,4,3]) -.out() -`, - true -)} - - Algorithmic operations ${makeExample(