GithubHelp home page GithubHelp logo

meira's Introduction

meira

An MEI-to-SVG renderer using only XSLT 2.0

meira stands for MEI rendering application. This is a project that was implemented for Edirom and must be regarded as highly experimental. No further development on this project is intended for reasons outlined in the Results section below.

Motivation

At the time development started, the options available for rendering MEI were very limited. XSLT was picked for the following reasons:

  • MEI and SVG are both XML formats, XSLT is meant to transform one XML into another - looks like a natural choice.
  • XSLT is a well established technology in the MEI community.
  • I didn't know anything about XSLT when I started this project.

Results

  • I developed some profound XSLT skills by jumping in at the deep end.
  • It is possible to render music with XSLT.
  • It is extremely slow.
  • To take the project to a decent level of quality and completeness, processing time would still increase by some order of magnitude.
  • XSLT isn't suitable for this kind of task.

How to try

Use an XSLT 2.0 processor, e.g. Saxon. Move to the meira folder and run the following:

java -classpath path/to/saxonb.jar net.sf.saxon.Transform Beispiele/Chopin_Mazurka.mei mei2svg.xsl > musx2svg/mazurka.svg

Replace path/to/saxonb.jar with the proper path to the Saxon B jar file on your system. Don't try rendering meira/Beispiele/Weber-op34-A.xml. It will take your computer an extremely long time to find out the latest revision of meira has a bug that prevents it from rendering.

meira's People

Contributors

th-we avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

edirom

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.