/MRS-Specification-RFC#10-analytical-overlays
Purpose
Overlays enable:- Harmonic analysis (chord symbols, Roman numerals)
- Thematic analysis (motifs, themes, occurrences)
- Form analysis (phrases, periods, sections)
- Voice-leading analysis
- Performance annotations
Overlay Structure
Overlay Types
Harmonic Analysis
| Field | Description |
|---|---|
:symbol | Chord symbol (Cm, G7, etc.) |
:function | Roman numeral function |
:inversion | root, first, second, third |
:cadence | Cadence type if applicable |
Thematic Analysis
Form Analysis
Voice-Leading Analysis
Overlay Lifecycle
| Lifecycle | Description |
|---|---|
| Persistent | Stored with the score, survives save/load |
| Session | Valid only for current editing session |
| Derived | Recomputed after score changes |
Derived Overlays
Some overlays can be automatically derived:- Key signature regions (from measure attributes)
- Tempo regions (from tempo markings)
- Rehearsal structure (from rehearsal marks)
- Harmonic function (needs chord identification)
- Thematic material (needs pattern recognition)
- Form labels (needs structural analysis)
Usage in Context Views
Overlays feed into context views:Usage in Structural Index
Overlays enrich the structural index:Overlay Attribution
Every overlay includes:| Field | Description |
|---|---|
:id | Unique identifier |
:type | Overlay type |
:author | Who created it (agent or human) |
:created | Creation timestamp |