Skip to content

FabriceSalvaire/sphinx-lilypond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lilypond plugin for Sphinx

sphinxcontrib-lilypond license sphinxcontrib-lilypond python version

sphinxcontrib-lilypond last version

This plugin implements a lily role and directive to include Music score formatted by Lilypond.

Changelog

  • 2017-xx SVG format is waiting a cropping solution
  • 2017-11 Cleanup for Python 3

Credits

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.

Default settings:

lilypond_preamble = ''
lilypond_fontsize = [10, -3]
lilypond_command = 'lilypond'
lilypond_args = []

Releases

No releases published

Packages

No packages published