pub fn xml_reader_type(path: &str) -> Option<&'static str>Expand description
Which MusicXML reader a path names: music21’s xmlReaderType.
use music21::environment::xml_reader_type;
assert_eq!(xml_reader_type("/Applications/Sibelius 7.app"), Some("Sibelius"));
assert_eq!(xml_reader_type("/usr/bin/mscore3"), Some("unknown"));
assert_eq!(xml_reader_type(""), None);