# Teaching notes

## Learner preferences
- Asked for this course modelled on the guitar course (Hrafz/guitar): the page names a note, the learner plays it on the real instrument, the page hears it and says right or wrong. Mic drills are the default; clicking the on-screen keys is the fallback.
- Total beginner. Explain every word the first time; stick to GLOSSARY.md.
- From the guitar course: likes keeping finished lessons intact. A change to a lesson is a new numbered copy, and the index lesson list is updated.

## Working notes
- Live at https://piano.achrafez.com. Every push to main goes live within 5 minutes, 10:00–22:00 Paris time (piano-update.timer on the VM, same as guitar); `make deploy-now` for anything urgent.
- All links are relative, so the course also works from a sub-path (e.g. achrafez.com/piano) if it moves there.
- Mission was written from the one-line request ("total beginner, piano next to them"). Not yet confirmed by the learner: ask about keyboard size, prior music, daily time, and what music they want to play, then revise MISSION.md.
- Pitch detector: guitar's McLeod detector, range widened to 55–2200 Hz. Synthetic piano tones (inharmonic overtones, weak bass fundamental, decay, noise) C2–C7: 244/244 exact (tests/pitch.test.mjs). Not yet tested on a real piano in a real room: ask how it behaved and tune Pitch.opt (gate, clarity, hold).
- Chords can't be checked by the single-note detector, so chord drills check the notes one at a time (broken chord), then ask for them together unchecked.
- Phones (2026-11-29): checked in an iPhone-sized touch emulation with a simulated mic. Keys answer on tap (click), not on touch-down, so swiping a scrolling keyboard never counts as a wrong note; wide keyboards open centred on middle C and scroll to any lit key; the AudioContext is made inside the tap (iOS); a wake lock keeps the screen on while listening; returning to the tab resumes the mic. Not yet tried on a real phone: iOS may play "Hear it" quietly while the mic is open.
- Digital keyboards: an octave-shift or transpose button makes every note read wrong. Lesson 1 says to reset them.
- Path: C D E and middle C → all white keys + octave numbers → C position + 3 tunes → black keys (+ Ode to Joy in D) → treble staff → C F G triads. Next candidates: left hand C position + bass clef; rhythm (quarter/half/whole notes); hands together (LH chord roots under RH tune).
