# Teaching notes

## Learner preferences
- Wants three things together: chord shapes in different positions, the fret each one sits at, and the note names inside each shape.
- Style: folk accompaniment (strumming while singing). Use folk progressions (G–C–D, C–F–G, D–G–A) as practice material, not abstract drills.
- 30 min/day. Lessons should fit in ~15 min of reading + playing, leaving time to practise.

- **Prefers playing over tapping** (2026-11-20): asked to answer drills on the real guitar, with the page listening like a tuner. Default future drills to mic mode (assets/pitch.js + assets/mic-drill.js), with tap drills as a fallback.
- Likes keeping finished lessons intact: make changes as new copies, not edits to existing lessons.

## Working notes
- **Hosted at https://guitar.achrafez.com** (2026-11-29), Caddy on the VM serving /srv/guitar. A push to main deploys it (VM timer, tests gate it). This replaces bundling lessons into claude.ai artifacts and the share.command tunnels.
- Mic drills can't run inside claude.ai artifacts (no microphone in the sandbox). Deliver them as a bundled standalone HTML file (`python3 bundle.py <lesson> <out>` inlines assets and points course links at the artifact URL), and tell the learner to open it in Chrome/Edge/Firefox on a computer.
- lessons/0002-two-homes-play-along.html = Lesson 1 with mic drills (tuner, play the root, play the shape string by string).
- lessons/0003-caged-one-chord-five-places.html = Lesson 2, CAGED map of G major (all five shapes, mic drills over all five). Next new lesson is 0004; next reference is 0003.
- Fret.SHAPES now has C, G, D (negative offsets allowed); Fret.positions(chord) and Fret.caged(el) give the five-shape map. tests/shapes.test.mjs checks all shapes against theory for 12 roots: extend it when adding shapes (e.g. Cm, Gm, Dm).
- Pitch detector: McLeod method, DC removed, judges only notes right after a pick. Synthetic test: 467/468 exact across strings 1–6, frets 0–12. Re-tested 2026-11-20: 218/218 audible plucks exact, zero wrong notes; end-to-end in Chrome with a fake mic, both drills judged right / wrong-note / wrong-octave correctly, standalone file too.
- Not yet tested with a real guitar and room mic: ask the learner how it behaved (missed notes, false wrong answers) and tune `Pitch.opt` (gate, clarity, hold) from that.
- Path (revised 2026-11-29, learner asked for CAGED before minors): E-shape + A-shape → full CAGED for majors (done, lesson 0003) → minor versions of all five shapes → octave shapes for remaining strings → I–IV–V in five positions → transposing songs.
- Barre chords "not fully clean": offer partial/3-4 string versions when a full barre would block the lesson's point.
- Diagrams: horizontal neck, high e on top (tab orientation), string 6 = thickest. Labels toggle: notes / chord tones / fingers.
- Course artifact: slug bfd3da2e-e2ae-4c9a-a49d-11451ff74afd (https://claude.ai/artifact/QgtNHkVguaNk82LBys7tWp). New lessons/references get published into it; update the index.html lesson list each time.
- Workspace persistence: this cloud session's files don't carry over. The published course artifact also holds MISSION/NOTES/GLOSSARY/RESOURCES/learning-records, so a later session can read them back from it.
