diff options
Diffstat (limited to 'scale.mjs')
| -rw-r--r-- | scale.mjs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -182,3 +182,11 @@ export function MinorScale(tonic) { const intervals = [2, 1, 2, 2, 1, 2]; return new Scale(tonic, intervals); } + +// well, a lot of them. +export const allDiatonicScales = chromaticScale.flatMap(tonic => { + return [ + MajorScale(tonic), + MinorScale(tonic) + ]; +}) |
