Skip to main content

from_tracks

Function from_tracks 

Source
pub fn from_tracks(tracks: &[&[u8]], ticks_per_quarter: u16) -> Result<Stream>
Expand description

Reads tracks’ data, each after its chunk’s tag and length, as a score, as from_midi reads a file of them: music21’s midiTracksToStreams.

§Errors

No tracks, no ticks to a quarter, or what from_midi refuses.