summaryrefslogtreecommitdiffstats
path: root/scale.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'scale.mjs')
-rw-r--r--scale.mjs8
1 files changed, 8 insertions, 0 deletions
diff --git a/scale.mjs b/scale.mjs
index 9bec03b..d33a5c3 100644
--- a/scale.mjs
+++ b/scale.mjs
@@ -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)
+ ];
+})