Skip to main content

Sphinx lilypond extension

Project description

sphinxcontrib-lilypond license sphinxcontrib-lilypond python version

sphinxcontrib-lilypond last version

This plugin implements a lily role and directive to including Lilypond score.

Credits

  • Fabrice Salvaire 2017 (cleanup for Python 3)

  • Wei-Wei Guo 2009, licensed under BSD

Installation

Using pip:

pip install sphinxcontrib-lilypond

Functionalities

  • A lily role to include a standalone music markup. For example, a G clef can be inserted by:

    :lily:`\musicglyph #"clefs.G"`

    The purpose of the ‘lily’ role is writing music comments or learning notes. So only one markup is allowed.

  • A lily directive to include a score, for example:

    .. lily::
    
       \relative c'' {
         c4 a d c
       }

Settings

The lilypond_fontsize variable can be used to set the font size:

lilypond_fontsize = ['6', '-3']
  • The first value is for lily role setting in absolute font size.

  • The second value is for lily directive setting in relative font size.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sphinxcontrib_lilypond-1.0.0-py2.py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page