A bilingual (English / Hebrew, with RTL) site for learning music. Currently: a generic Music Foundations course and a full Guitar roadmap (0 → 100%). Piano and drums are placeholders.
Easiest: double-click index.html (no server or install needed; progress is saved in your browser).
Or serve it locally:
python -m http.server 8765Then open http://localhost:8765
index.html
css/style.css
js/core.js registries (courses, instruments, widgets)
js/i18n.js UI strings (en / he)
js/app.js router + views + progress (localStorage)
js/widgets.js staff, piano keys, fretboard, chord diagrams, metronome, quiz...
js/content/theory.js generic theory course (instrument-independent)
js/content/guitar.js guitar lessons
js/content/instruments.js instrument list + each roadmap (stages -> "course/lesson")
- Create
js/content/piano.jscallingMF.registerCourse({ id:'piano', tag:{en,he}, title, summary, lessons:[...] }). - Add
<script src="js/content/piano.js"></script>toindex.html. - In
js/content/instruments.js, set the piano entry toavailable: trueand addstageslisting steps like'piano/black-keys'or reuse'theory/notes'.
The percentages on the roadmap are computed automatically from the number of steps.
Each lesson has en and he objects with title, summary and an HTML body. Drop interactive widgets into a body with tokens:
| Token | Result |
|---|---|
{{staff:E4,G4,B4|names}} |
notes on a treble staff (click to hear) |
{{keys}} |
one-octave piano keyboard |
{{fretboard:12|natural}} |
fretboard; also all or hl:A,C,D,E,G and an optional fret range |5-8 |
{{chord:Em}}, {{chords:C,G,Am,F}} |
chord diagrams (add more in CHORDS in widgets.js) |
{{strum:D - D U - U D U}} |
strumming pattern |
{{strings}}, {{metronome}}, {{notequiz}}, {{scalefinder}} |
practice tools |