Expand description
Typed views over raw MetaBucket payloads.
These helpers interpret the common Standard MIDI File meta types (text, track name, marker, SMPTE offset) and build the matching buckets, without the core model needing a variant per meta type.
Functions§
- as_
marker - Returns the bucket’s UTF-8 text if it is a marker meta event (type
0x06). - as_
smpte_ offset - Returns the
SmpteOffsetif the bucket is a 5-byte SMPTE-offset meta event (type0x54). - as_text
- Returns the bucket’s UTF-8 text if it is a text meta event (type
0x01). - as_
track_ name - Returns the bucket’s UTF-8 text if it is a track-name meta event (type
0x03). - make_
marker - Builds a marker meta bucket (type
0x06) fromvalue. - make_
smpte_ offset - Builds a SMPTE-offset meta bucket (type
0x54) fromoffset. - make_
text - Builds a text meta bucket (type
0x01) fromvalue. - make_
track_ name - Builds a track-name meta bucket (type
0x03) fromvalue.