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 a MusicXML file of one score type and write it as a different score type
  let output_path = "./target/Grande Valse Brillante.musicxml";
  let score = read_score_timewise("./musicxml/tests/Grande Valse Brillante - Timewise.musicxml")
    .expect("Failed to read input test file");
  println!(
    "Converting and writing to '{}'...{}",
    output_path,
    if write_timewise_score(output_path, &score, false, true).is_ok() {
      "SUCCESS"
    } else {
      "FAILED"
    }
  );
}