pub fn stream_to_smf_bytes(
stream: &StreamValue,
tpq: u32,
) -> Result<(Vec<u8>, usize)>Expand description
Drains a MIDI stream and encodes it as Standard MIDI File bytes.
Returns the encoded bytes together with the number of events written.