Module 2: Scales & Keys tools and lesson content
Created by: jedmund
Summary
- Extended scale_builder to support WH (3 half step) patterns for harmonic minor and pentatonic scales
- Adjusted interval_classifier playback timing for 7-8 note scale stimuli (0.25s/note vs 0.4s for intervals)
- Added degree label overlay system: circled numbers above keyboard keys with tap-to-expand names
- Added accented pitch (orange tint) and selected pitch (accent border) states to SynthKeyboardView
- Built 3 new exercise tools: scale_explorer (pill toggles, difference highlighting), key_signature_quiz (accidental display, identify key/accidentals), mode_rotator (tap-to-select tonic, dynamic step arcs)
- Authored all 6 lessons covering scale degrees, key signatures, minor scales, harmonic/melodic minor, modes, and pentatonic/blues
- 19 exercise configs across scale_builder, scale_explorer, key_signature_quiz, mode_rotator, interval_classifier, and playable_keyboard
- 6 checks (5 questions each), 12 hardware prompts, 6 markdown companions
Test plan
-
Build succeeds on iPad simulator -
Walk through all 6 lessons page by page, verify no layout issues -
Verify degree_labels render on keyboard_diagram blocks in lessons 2-1 and 2-3 -
Verify scale_builder handles WH pattern in lessons 2-4 and 2-6 -
Verify interval_classifier plays 8-note scale stimuli at faster tempo -
Test scale_explorer pill toggles and difference highlighting -
Test key_signature_quiz in both identify_key and identify_accidentals modes -
Test mode_rotator tap-to-select and step arc recomputation -
Verify all exercise_refs resolve to working exercises -
Verify no back-to-back modal layouts in any lesson