Files
craft-libs/crates/midi/tests/it/main.rs
T
Dylan M. Taylor 721b0868d7 craft-midi: lenient reader with warnings, format-0 writing (#1079)
* craft-midi: lenient reader, instrument names, end tick, format-0 writing

read_smf_lenient reads what makes sense of a damaged file and returns
warnings, with the tolerance rules of LoopCraft's SMF reader. SmfTrack
gains the Instrument Name meta event, Smf the last tick any track reaches,
and write_smf writes format 0 when Smf::format is 0. Smf::default() is
now explicitly format 1, so a default-built file is still written as
format 1.

* craft-midi: keep Smf and SmfTrack unchanged; lenient extras in LenientRead

SoundCraft builds Smf and SmfTrack with struct literals, so new fields
would break it. Instrument names and the end tick now come back in the
non-exhaustive LenientRead that read_smf_lenient returns; the writer no
longer writes instrument names (no caller needs it).
2026-11-11 21:57:52 -05:00

6 lines
109 B
Rust

//! Integration tests, built as one test binary: each file is a module.
mod lenient;
mod sequence;
mod smf;