Reference manual¶
Leaves¶
- 1. Chords
- 1.1. Making chords from a LilyPond input string
- 1.2. Making chords from numbers
- 1.3. Understanding the interpreter representation of a chord
- 1.4. Getting and setting the written duration of a chord
- 1.5. Getting and setting the written pitches of a chord
- 1.6. Getting chord note-heads
- 1.7. Appending note-heads to a chord
- 1.8. Extending chords
- 1.9. Deleting chord note-heads
- 1.10. Tweaking chord note-heads
- 1.11. Working with empty chords
- 2. Notes
- 3. Rests
Containers¶
- 1. Containers
- 1.1. Creating containers
- 1.2. Selecting music
- 1.3. Inspecting length
- 1.4. Inspecting duration
- 1.5. Adding one component to the end of a container
- 1.6. Adding many components to the end of a container
- 1.7. Finding the index of a component
- 1.8. Inserting a component by index
- 1.9. Removing a component by index
- 1.10. Removing a component by reference
- 1.11. Naming containers
- 1.12. Understanding
{ }
and<< >>
in LilyPond - 1.13. Understanding sequential and simultaneous containers
- 1.14. Changing sequential and simultaneous containers
- 2. Measures
- 3. Scores
- 3.1. Making a score from a LilyPond input string
- 3.2. Making a score from a list of Abjad components
- 3.3. Understanding the interpreter representation of a score
- 3.4. Understanding the LilyPond format of a score
- 3.5. Selecting the music in a score
- 3.6. Selecting a score’s leaves
- 3.7. Getting the length of a score
- 3.8. Inspecting duration
- 3.9. Appending one component to the bottom of a score
- 3.10. Finding the index of a score component
- 3.11. Removing a score component by index
- 3.12. Removing a score component by reference
- 3.13. Inspecting whether or not a score contains a component
- 3.14. Naming scores
- 4. Staves
- 4.1. Making a staff from a LilyPond input string
- 4.2. Making a staff from a list of Abjad components
- 4.3. Understanding the interpreter representation of a staff
- 4.4. Inspecting the LilyPond format of a staff
- 4.5. Selecting the music in a staff
- 4.6. Selecting a staff’s leaves
- 4.7. Getting the length of a staff
- 4.8. Inspecting duration
- 4.9. Appending one component to the end of a staff
- 4.10. Extending a staff with multiple components at once
- 4.11. Finding the index of a component in a staff
- 4.12. Popping a staff component by index
- 4.13. Removing a staff component by reference
- 4.14. Naming staves
- 4.15. Changing the context of a voice
- 4.16. Making parallel voices in a staff
- 5. Tuplets
- 5.1. Making a tuplet from a LilyPond input string
- 5.2. Making a tuplet from a list of other components
- 5.3. Understanding the interpreter representation of a tuplet
- 5.4. Understanding the string representation of a tuplet
- 5.5. Formatting tuplets
- 5.6. Selecting the music in a tuplet
- 5.7. Selecting a tuplet’s leaves
- 5.8. Getting the length of a tuplet
- 5.9. Inspecting tuplet duration
- 5.10. Understanding rhythmic augmentation and diminution
- 5.11. Getting and setting the multiplier of a tuplet
- 5.12. Appending one component to the end of a tuplet
- 5.13. Extending a tuplet with multiple components at once
- 5.14. Finding the index of a component in a tuplet
- 5.15. Popping a tuplet component by index
- 5.16. Removing a tuplet component by reference
- 5.17. Overriding attributes of the LilyPond tuplet number grob
- 5.18. Overriding attributes of the LilyPond tuplet bracket grob
- 6. Voices
- 6.1. Making a voice from a LilyPond input string
- 6.2. Making a voice from a list of other components
- 6.3. Understanding the interpreter representation of a voice
- 6.4. Formatting voices
- 6.5. Selecting the components in a voice
- 6.6. Selecting a voice’s leaves
- 6.7. Getting the length of a voice
- 6.8. Inspecting voice duration
- 6.9. Appending one component to the end of a voice
- 6.10. Extending a voice with multiple components at once
- 6.11. Finding the index of a component in a voice
- 6.12. Popping a voice component by index
- 6.13. Removing a voice component by reference
- 6.14. Naming voices
- 6.15. Changing the context of a voice
Attachments¶
- 1. Articulations
- 1.1. Creating articulations
- 1.2. Understanding the interpreter representation of an articulation
- 1.3. Attaching articulations to a leaf
- 1.4. Attaching articulations to many leaves
- 1.5. Getting the articulations attached to a leaf
- 1.6. Detaching articulations from a leaf
- 1.7. Understanding the string representation of an articulation
- 1.8. Understanding the LilyPond format of an articulation
- 1.9. Controlling whether an articulation appears above or below the staff
- 1.10. Comparing articulations
- 2. Instruments
- 2.1. Creating instruments
- 2.2. Understanding the interpreter representation of an instrument
- 2.3. Attaching instruments to a component
- 2.4. Inspecting the instrument attached to a component
- 2.5. Inspecting a component’s effective instrument
- 2.6. Detaching instruments from a component
- 2.7. Getting the name of an instrument
- 2.8. Getting the short name of an instrument
- 2.9. Getting an instrument’s range
- 2.10. Getting an instrument’s level of transposition
- 2.11. Getting an instrument’s allowable clefs
- 2.12. Customizing instrument properties
- 3. LilyPond literals
- 3.1. Creating LilyPond literals
- 3.2. Understanding the interpreter representation of LilyPond literals
- 3.3. Attaching LilyPond literals to Abjad components
- 3.4. Inspecting the LilyPond literals attached to a leaf
- 3.5. Detaching LilyPond literals
- 3.6. Getting the argument of a LilyPond literal
- 3.7. Comparing LilyPond literals
- 4. LilyPond comments
- 4.1. Creating LilyPond comments
- 4.2. Understanding the interpreter representation of a LilyPond comment
- 4.3. Attaching LilyPond comments to leaves
- 4.4. Attaching LilyPond comments to containers
- 4.5. Getting the LilyPond comments attached to a component
- 4.6. Detaching LilyPond comments
- 4.7. Getting the contents string of a LilyPond comment
LilyPond files¶
Pitches¶
- 1. Named pitches
- 1.1. Creating named pitches
- 1.2. Understanding the interpreter representation of a named pitch
- 1.3. Understanding the string representation of a named pitch
- 1.4. Getting the accidental of a named pitch
- 1.5. Getting the octave of a named pitch
- 1.6. Comparing named pitches
- 1.7. Changing named pitches to named pitch-classes
- 1.8. Changing named pitches to numbered pitches
- 1.9. Changing named pitches to numbered pitch-classes