A.23 Naming conventions

Naming conventions are used so that it is easier to keep the nature of an object in mind.

Object/property typeNaming conventionExamples
Keywordsaaaa\score, \addlyrics
Music functions and shortcutsaaaa or aaaaAaaaAaaa\time, \stemUp
Markup functionsaaaa or aaaa-aaaa-aaaa\bold, \with-dimensions
Paper variablesaaaa or aaaa-aaaa-aaaaindent, page-breaking
Music expressionsAaaa or AaaaAaaaAaaaNoteEvent, SequentialMusic
Music classesaaaa or aaaa-aaaa-aaaanote-event, rhythmic-event
Music propertiesaaaa or aaaa-aaaa-aaaaforce-accidental, iterator-ctor
ContextsAaaa or AaaaAaaaAaaaStaff, GrandStaff
Context propertiesaaaa or aaaaAaaaAaaastanza, instrumentName
EngraversAaaa_engraver or Aaaa_aaaa_aaaa_engraverClef_engraver, Note_heads_engraver
Layout ObjectsAaaa or AaaaAaaaAaaaSlur, NoteHead
Layout Object Propertiesaaa or aaa-aaa-aaadirection, beam-thickness
Interfacesaaa-aaa-interfacegrob-interface, break-aligned-interface
Scheme functions defined in Guileaaaa or aaaa-aaaa-aaaamap, for-each
Scheme functions defined in LilyPondly:aaaa or ly:aaaa-aaaa-aaaa or aaaa or aaaa-aaaa-aaaa 1ly:round-filled-box, music-map

Footnotes

[1] For historical reasons, some but not all of the functions defined by LilyPond start with the ly: prefix.


LilyPond — Notation Reference v2.23.82 (development-branch).