fm-vector 0.1.0

A notation program's PDF read from its vectors: every notehead, stem, beam and barline where the engraver put it, read into .fmn and compiled to MusicXML, with the words from the PDF's text. No model, no server: it runs in the browser.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! `cargo run -p fm-vector --example dump -- SCORE.pdf SYSTEM`: everything drawn over a system.

fn main() {
    let a: Vec<String> = std::env::args().collect();
    let bytes = std::fs::read(&a[1]).expect("reading the PDF");
    let s: usize = a[2].parse().expect("a system number");
    print!(
        "{}",
        fm_vector::dump_system(&bytes, s).unwrap_or_else(|e| e)
    );
}