Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.31 KB

README.md

File metadata and controls

62 lines (44 loc) · 1.31 KB

ml2mxml

ml2mxml is an OCaml library to generate musicxml (http://www.musicxml.com/) files.

That library was developed for two reasons:

With that library, music can be written as:

  • write an OCaml program (see examples/hello_ode_of_joy.ml),
  • compile/execute it (% omake ex),
  • open the generated musicxml file, with for example a midi player that understands the format (see http://www.musicxml.com/software/).

Up to now, the generated files were tested with Guitar Pro 6 only. If you're experiencing problems with another musicxml reader, don't hesitate at creating issues (https://github.com/yetanotherion/ml2mxml/issues).

Instructions

The library can be installed with opam (http://opam.ocaml.org/):

% opam install ml2mxml

To build from source, the following dependencies are needed

% opam install ocamlfind cow omake ounit

Then, the following omake targets are available:

  • build the library:
% omake
  • execute the tests:
% omake test
  • generate the xml of the example:
% omake ex
  • install (uninstall):
% omake install (uninstall)