Skip to main content

instrument_of

Function instrument_of 

Source
pub fn instrument_of(source: Source<'_>, channel: u8) -> Instrument
Expand description

The instrument an event names, on its channel: music21’s midiEventToInstrument. A name is cut at its first nul, as MuseScore ends them so, and kept as the part’s or instrument’s name unless it is a placeholder.