How dffmonolith/intervals works
Intervals is a browser-based ear-training app. The main workflow is to choose an exercise and settings, hear a piano reference or interval, then sing or identify the target and review feedback. The README describes the app’s capabilities, but its implementation in index.html was not sampled; those internal relationships are therefore documented at the product level. The service worker’s caching behavior is visible in its excerpt.
Main entry points: index.html Intervals app · sw.js Service worker · manifest.webmanifest App manifest · intervals-piano-samples.json Piano samples
Components 20
Practice modes
- Intervals app
index.html - Sing mode
index.html - Name it mode
index.html - Practice setup
index.html - Solfège mode
index.html
Audio and notation
- Piano playback
index.html - Piano samples
intervals-piano-samples.json - Pitch detection
index.html - Tuner
index.html - Staff display
index.html
Learning and progress
- Answer feedback
index.html - Progress and CSV
index.html - Built-in guide
index.html
Offline app
- Service worker
sw.js - App manifest
manifest.webmanifest - Cache storage
Other components
- Learner
- Web Audio API
- Microphone
- Browser storage
Connections 26
- Learner → Intervals app: uses
README.md - Intervals app → Sing mode: offers
README.md - Intervals app → Name it mode: offers
README.md - Intervals app → Practice setup: configures
README.md - Sing mode → Solfège mode: supports
README.md - Name it mode → Solfège mode: supports
README.md - Sing mode → Piano playback: plays reference
README.md - Name it mode → Piano playback: plays intervals
README.md - Piano playback → Piano samples: uses samples
README.md - Piano playback → Web Audio API: plays through
README.md - Sing mode → Microphone: listens through
README.md - Tuner → Microphone: listens through
README.md - Microphone → Pitch detection: provides audio
README.md - Pitch detection → Answer feedback: scores pitch
README.md - Name it mode → Answer feedback: checks answer
README.md - Solfège mode → Staff display: shows notes
README.md - Answer feedback → Progress and CSV: records results
README.md - Progress and CSV → Browser storage: stores privately
README.md - Progress and CSV → Learner: exports CSV
README.md - Intervals app → Built-in guide: provides guide
README.md - Intervals app → Service worker: registers for offline use
- Service worker → Cache storage: caches resources
sw.js - Service worker → App manifest: caches
sw.js - Service worker → Piano samples: caches
sw.js - Service worker → Intervals app: serves cached app
sw.js - App manifest → Intervals app: sets start page