Commit Graph
2 Commits
Author SHA1 Message Date
mtlcl410 38b4001816 MIDI: imported SMF SysEx packets retain their payloads and timing on export (#2077)
* Preserve SMF SysEx packet payloads and timing across MIDI round trips

* Order cross-track note-offs before SysEx when writing format zero

* Diagnose truncated SysEx and guard merged packet streams

* Validate emitted event order around split SysEx

* Preserve real split boundaries when exporting SMF SysEx

* Preserve same-tick SysEx order and require real termination
2026-11-20 09:57:10 +07:00
Dylan M. Taylor c684e6a759 Add craft-midi: Standard MIDI File reader and writer from SoundCraft (#884)
read_smf (formats 0 and 1, format 2 best effort) and write_smf (format 1,
960 PPQ) with the model they read into: Note, CtrlEvent, CtrlKind and
Sequence, in ticks at 960 per quarter note. serde on the model types is
behind the `serde` feature.

Moved from soundcraft crates/midi at 17d3f007: smf.rs, sequence.rs, the
error type, the SMF tests and the Sequence tests. The editing operations
(quantize, transpose, ...) and the display names stay in SoundCraft. Adds
a test for the MAX_TRACKS limit, which had none.
2026-11-11 16:41:11 -05:00