Welcome to python-ly’s documentation!
This package provides a Python library ly containing various Python modules to parse, manipulate or create documents in LilyPond format. A command line program ly is also provided that can be used to do various manipulations with LilyPond files.
The LilyPond format is a plain text input format that is used by the GNU music typesetter LilyPond (www.lilypond.org).
The python-ly package is Free Software, licensed under the GPL. This package is written by the Frescobaldi developers and is used extensively by the Frescobaldi project. The main author is Wilbert Berendsen.
Download from: https://pypi.python.org/project/python-ly
Development homepage: https://github.com/frescobaldi/python-ly
This documentation describes python-ly 0.9.9.
Contents:
- The
lycommand - The
ly-servercommand - The
lypackage- Module contents
- Subpackages
- Submodules
- ly.slexer module
- ly.document module
- DocumentBase and Document
- Cursor
- Runner
- Source
CursorDocumentDocumentBaseDocumentBase.apply_changes()DocumentBase.block()DocumentBase.blocks_backward()DocumentBase.blocks_forward()DocumentBase.check_changes()DocumentBase.encodingDocumentBase.filenameDocumentBase.index()DocumentBase.initial_state()DocumentBase.isblank()DocumentBase.isvalid()DocumentBase.next_block()DocumentBase.plaintext()DocumentBase.position()DocumentBase.previous_block()DocumentBase.setplaintext()DocumentBase.size()DocumentBase.state()DocumentBase.state_end()DocumentBase.text()DocumentBase.tokens()DocumentBase.tokens_with_position()DocumentBase.update_cursors()
RunnerSource
- ly.docinfo module
DocInfoDocInfo.complete()DocInfo.count_tokens()DocInfo.counted_tokens()DocInfo.definitions()DocInfo.documentDocInfo.find()DocInfo.find_all()DocInfo.global_staff_size()DocInfo.has_output()DocInfo.include_args()DocInfo.language()DocInfo.markup_definitions()DocInfo.mode()DocInfo.output_args()DocInfo.range()DocInfo.scheme_load_args()DocInfo.token_hash()DocInfo.version()DocInfo.version_string()
- ly.barcheck module
- ly.colorize module
HtmlWriterHtmlWriter.bgcolorHtmlWriter.css_mapperHtmlWriter.css_schemeHtmlWriter.document_idHtmlWriter.encodingHtmlWriter.fgcolorHtmlWriter.full_htmlHtmlWriter.html()HtmlWriter.inline_styleHtmlWriter.linenumbers_bgcolorHtmlWriter.linenumbers_fgcolorHtmlWriter.linenumbers_idHtmlWriter.number_linesHtmlWriter.set_wrapper_attribute()HtmlWriter.set_wrapper_tag()HtmlWriter.stylesheet_refHtmlWriter.titleHtmlWriter.wrapper_attributeHtmlWriter.wrapper_tag
Mapperadd_line_numbers()css_attr()css_classcss_dict()css_group()css_item()css_mapper()css_style_attribute_formatterdefault_mapping()format_css_span_class()format_html_document()format_stylesheet()get_tokens()html()html_escape()html_escape_attr()html_format_attrs()map_tokens()melt_mapped_tokens()style
- ly.cursortools module
- ly.dom module
AddDurationAddLyricsAssignmentBlankLineBlockBlockCommentBookBookPartChoirStaffChordChordModeChordNamesClefCommandCommandEnclosedCommentContainerContextContextNameContextPropertyContextTypeCueVoiceDevnullDocumentDrumModeDrumStaffDrumVoiceDurationDynamicsEnclosedFigureModeFiguredBassFretBoardsGlobalGrandStaffGregorianTranscriptionStaffGregorianTranscriptionVoiceHandleVarsHeaderIdentifierIncludeInnerChoirStaffInnerStaffGroupInputChordsInputDrumsInputFiguresInputLyricsInputModeInputNotesKeySignatureLayoutLeafLineLineCommentLyNodeLyricModeLyricsLyricsToMarkMarkupMarkupCommandMarkupEnclosedMensuralStaffMensuralVoiceMidiNamedNewlineNoteModeNoteNamesPaperPartialPianoStaffPitchPrinterQuotedStringReferenceRelativeRhythmicStaffSchemeSchemeLilySchemeListScoreScoreContextSectionSeqSeqrSimSimrStaffStaffGroupStatementStatementEnclosedTabStaffTabVoiceTempoTextTextDurTimeSignatureTranspositionUserContextVaticanaStaffVaticanaVoiceVersionVoiceVoiceSeparatorWith
- ly.duration module
- ly.etreeutil module
- ly.indent module
- ly.node module
NodeNode.ancestors()Node.append()Node.backward()Node.clear()Node.copy()Node.descendants()Node.dump()Node.extend()Node.find()Node.find_child()Node.find_children()Node.find_parent()Node.forward()Node.index()Node.insert()Node.insert_before()Node.is_descendant_of()Node.iter_depth()Node.iter_rings()Node.next_sibling()Node.parent()Node.previous_sibling()Node.remove()Node.replace()Node.sort()Node.toplevel()Node.unlink()
WeakNode
- ly.reformat module
- ly.rhythm module
music_itemmusic_items()music_tokens()preceding_duration()remove_dups()rhythm_dot()rhythm_double()rhythm_explicit()rhythm_extract()rhythm_halve()rhythm_implicit()rhythm_implicit_per_line()rhythm_overwrite()rhythm_remove()rhythm_remove_fraction_scaling()rhythm_remove_scaling()rhythm_undot()
- ly.util module
- ly.words module