# fm-vector
Reads the notation back out of a PDF that a notation program wrote (MuseScore, Dorico, Sibelius,
Finale, LilyPond, Musicnotes): every notehead, stem, beam and barline from the PDF's own glyphs and
lines, not pixels. Each bar is compiled before it is kept; a bar that does not add up is left as
a rest and named, never guessed. The score comes out as MusicXML. No model, no server; it builds
to WebAssembly.
```rust
let reading = fm_vector::read_pdf(&std::fs::read("score.pdf")?)?;
std::fs::write("score.musicxml", reading.musicxml)?;
```
Part of [copyist](https://github.com/fermata-music/copyist): why it is free and how well it reads
are in its `WHY.md`. MIT or Apache-2.0.