diff options
| author | Brian Cully <bjc@spork.org> | 2025-04-10 14:13:20 -0400 |
|---|---|---|
| committer | Brian Cully <bjc@spork.org> | 2025-04-10 14:13:20 -0400 |
| commit | 844494bb547004fb1ac06bb2a3f06be51618d3b7 (patch) | |
| tree | 69fb20a354155db958ea1555d65107e413ae29f4 /key-picker.mjs | |
| parent | bbfdd803ef2f3918efca6e0c965e449c02626094 (diff) | |
| download | chords-844494bb547004fb1ac06bb2a3f06be51618d3b7.tar.gz chords-844494bb547004fb1ac06bb2a3f06be51618d3b7.zip | |
js: add stubs for aug/dim scales
Diffstat (limited to 'key-picker.mjs')
| -rw-r--r-- | key-picker.mjs | 6 |
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()); } |
