Coder Social home page Coder Social logo

davidbauer1984 / libmei Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rism-digital/libmei

0.0 0.0 0.0 4.34 MB

Libmei for generating code for the Verovio project

Home Page: http://www.verovio.org

CMake 0.59% Python 13.02% C++ 84.19% C 0.08% Shell 0.19% JavaScript 0.77% HTML 0.04% XSLT 1.12% NASL 0.01%

libmei's Introduction

LibMEI

Build Status

LibMEI is a C++ library for reading and writing MEI files

It is developed by the Distributed Digital Music Archives and Libraries Lab at the Schulich School of Music at McGill University, Montréal, Canada

This is a modified version that is used for generating C++ code for Verovio. The main differences with LibMEI are:

  1. it generates only attribute classes (Mixin in LibMEI),
  2. each attribute has a C++ type deduced from the MEI schema or given in a separted configuration file,
  3. it uses the MEI page-based customization not included in the MEI 2013 v2.1.0 (see MEI).

License

LibMEI is released under the MIT license.

Compilation & Usage

There is a modified CPP script tools/lang/cplusplus_vrv.py that can be activated with the -l vrv language option.

Additional C++ includes are in the tools/includes/vrv directory. The code will be generated into a ./libmei sub-directory at organized in Verovio.

A compiled version of the 2013 schema with the latest page-based customization is available in mei/xxxx-xx-xx/mei-page-based.xml.odd.

To generate the code, simply

python3 tools/parseschema2.py -l vrv -o path_to_verovio_directory -i tools/includes/vrv mei/2013-11-05/mei-page-based.xml.odd

Remark: you will need the lxml and pyyaml packages to be installed for this to run.

libmei's People

Contributors

affogarty avatar ahankinson avatar alastair avatar antonkhelou avatar breakend avatar craigsapp avatar ifkarp avatar kepper avatar lpugin avatar mrbannon avatar xhero avatar zolaemil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.