/MRS-Specification-RFC#11-data-model
Core Type Hierarchy
Player-Instrument-Staff Model
MRS uses a three-level model for professional orchestration semantics.Player
Instrument
Instrument Families
Measure
Measure Identity
:id— Stable UUIDv7, survives structural changes:number— Display only, can change on insert/delete:beat-start— Orchestrator-computed, absolute position
Attribute Inheritance
Event
Event Position
Events have structural position (beat within measure). The orchestrator computes absolute position::at is optional (can be computed). In MRS-Ops, agents provide :beat; orchestrator computes :at.
Pitch Expression
Span
Span Types
Span Immutability
Once created, span endpoints (:from, :to, :events) are immutable. To change endpoints, delete the span and create a new one.
Identifier Rules
Rational Numbers
All temporal positions use exact rationals:Voices and Layers
Voices
Independent melodic/rhythmic streams within an instrument:v1throughv4for single-staff instruments:rh/:lhfor keyboard instruments (thenv1,v2within each)
Layers
Same-rhythm sub-structure within a voice:HarmonyPlan Layer
The HarmonyPlan is an embedded optional layer for chord symbols and harmonic structure:- Composing harmony before notes
- Validating notes against harmony
- Extracting harmonic context for agents