Abjad / abjad

Abjad is a Python API for building LilyPond files. Use Abjad to make PDFs of music notation.
https://abjad.github.io
GNU General Public License v3.0
234 stars 41 forks source link

Added explicit contexts to tests and examples #1549

Closed trevorbaca closed 1 year ago

trevorbaca commented 1 year ago

Many Abjad indicators are contexted: abjad.Dynamic is contexted to the voice; abjad.Clef is contexted to the staff; abjad.Violin is contexted to the staff; abjad.Piano is contexted to the staff group; and so on.

This commit changes many tests and examples to make sure that all examples with an abjad.Dynamic attach to a score with an explicit abjad.Voice, and that all examples with an abjad.Clef attach to a score with an explicit abjad.Staff, and so on.

Cleaned up abjad.illustrators.components(). Taught text-spanner wellformedness checks about deactivated wrappers.