lenmus / lomse

A C++ library for rendering, editing and playing back music scores.
MIT License
120 stars 28 forks source link

Render scores in SVG format #340

Closed cecilios closed 2 years ago

cecilios commented 2 years ago

This PR starts adding support for rendering documents as a stream of SVG commands (as text, in HTML format). The new SVG rendering facilities are independent of the existing bitmap related methods and both can be used simultaneously.

Limitations

Usage example See file /examples/svg/svg-minimal.cpp

Modify lines 36 & 50 as desired and build with:

g++ -std=c++11 svg-minimal.cpp -o svg-minimal `pkg-config --cflags liblomse` \
     `pkg-config --libs liblomse` -lstdc++

I will soon update the API documentation to add information about generating SVG with Lomse.

Changes

Other non-related changes