diff options
Diffstat (limited to 'main.mjs')
| -rw-r--r-- | main.mjs | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -1,20 +1,15 @@ -import Fretboard, { fretToNote } from './fretboard.mjs'; -import KeyPicker from './key-picker.mjs'; +import Fretboard from './fretboard.mjs'; import History from './history.mjs'; - -function notes(form) { - const strings = ['string1', 'string2', 'string3', 'string4', 'string5', 'string6']; - const formData = new FormData(form); - console.debug('notes', form, formData); - return strings.map((klass) => fretToNote(form, klass, formData.get(klass))); -} +import KeyPicker from './key-picker.mjs'; +import String from './string.mjs'; function init() { console.debug('init()', this); + String.register(); Fretboard.register(); - KeyPicker.register(); - History.register(); + // KeyPicker.register(); + // History.register(); // todo: maybe just attach the listener to document? document.querySelectorAll(Fretboard.name).forEach(f => { |
