Skip to main content

parse_musicxml

Function parse_musicxml 

Source
pub fn parse_musicxml(_xml: &str) -> Result<Expr>
Expand description

Parse MusicXML into a Fermata AST.

This enables round-tripping: MusicXML โ†’ Fermata โ†’ MusicXML

ยงExample

โ“˜
let xml = std::fs::read_to_string("score.musicxml")?;
let ast = fermata::parse_musicxml(&xml)?;
println!("{}", fermata::format(&ast));