musicxml 1.1.2

MusicXML parsing, manipulation, and export library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use musicxml::*;

fn main() {
  // Read, parse, and rewrite a compressed MusicXML file
  let output_path = "./target/Grande Valse Brillante.mxl";
  let score =
    read_score_partwise("./musicxml/tests/Grande Valse Brillante.musicxml").expect("Failed to read input test file");
  println!(
    "Writing to '{}'...{}",
    output_path,
    if write_partwise_score(output_path, &score, true, false).is_ok() {
      "SUCCESS"
    } else {
      "FAILED"
    }
  );
}