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.

Files for sphinxcontrib-lilypond, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size sphinxcontrib_lilypond-1.0.0-py2.py3-none-any.whl (7.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page