pub fn instrument_xml(instrument: &Instrument) -> (String, String)Available on crate feature
musicxml only.Expand description
What music21’s instrumentToXmlScoreInstrument and
instrumentToXmlMidiInstrument write for an instrument: its
<score-instrument> and its <midi-instrument>.
use music21::Instrument;
use music21::musicxml::instrument_xml;
let (score, midi) = instrument_xml(&Instrument::new());
assert!(score.starts_with("<score-instrument"));
assert!(midi.starts_with("<midi-instrument"));