summaryrefslogtreecommitdiffstats
path: root/key-picker.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-04-10 14:13:20 -0400
committerBrian Cully <bjc@spork.org>2025-04-10 14:13:20 -0400
commit844494bb547004fb1ac06bb2a3f06be51618d3b7 (patch)
tree69fb20a354155db958ea1555d65107e413ae29f4 /key-picker.mjs
parentbbfdd803ef2f3918efca6e0c965e449c02626094 (diff)
downloadchords-844494bb547004fb1ac06bb2a3f06be51618d3b7.tar.gz
chords-844494bb547004fb1ac06bb2a3f06be51618d3b7.zip
js: add stubs for aug/dim scales
Diffstat (limited to 'key-picker.mjs')
-rw-r--r--key-picker.mjs6
1 files changed, 6 insertions, 0 deletions
diff --git a/key-picker.mjs b/key-picker.mjs
index 6d2efbe..f88f45c 100644
--- a/key-picker.mjs
+++ b/key-picker.mjs
@@ -6,6 +6,10 @@ function scaleFrom(tonic, scale) {
return MajorScale(tonic);
case 'minor':
return MinorScale(tonic);
+ case 'aug':
+ return AugmentedScale(tonic);
+ case 'dim':
+ return DiminishedScale(tonic);
default:
throw new Error('how this happen')
}
@@ -111,4 +115,6 @@ export default function KeyPicker(form) {
elt.onclick = handleNoteClick;
});
formChanged(form);
+
+ console.log('bjc', 'Cdim', DiminishedScale('C').toString());
}