SnoteRecord
alignment.SnoteRecord(
id,
pitch_name,
modifier,
octave,
measure,
beat,
offset,
duration,
onset_in_beats,
offset_in_beats,
attributes=list(),
)Score note record for .match format export.
Each field corresponds to a positional element in the snote(...) Prolog-style term. See the Vienna match specification for semantics.
Attributes
| Name | Type | Description |
|---|---|---|
| id | str |
Score note identifier (e.g. "n1"). |
| pitch_name | str |
Note name without accidental (e.g. "B"). |
| modifier | str |
Accidental modifier: "n" (natural), "#" (sharp), "b" (flat), "bb" (double flat), "x" (double sharp). |
| octave | int |
Scientific octave number (e.g. 3). |
| measure | int |
Measure number (1-indexed). |
| beat | int |
Beat number within the measure (1-indexed). |
| offset | str |
Symbolic offset within the beat (e.g. "0", "1/16"). |
| duration | str |
Symbolic duration (e.g. "1/8", "1/4"). |
| onset_in_beats | float |
Onset position in quarter-beats (may be negative for anacrusis). |
| offset_in_beats | float |
End position in quarter-beats. |
| attributes | list[str] |
Extra attributes (e.g. ["v1", "staff1"]). |