Measure spanner: Difference between revisions

m New category
Tags: Mobile edit Mobile web edit
mNo edit summary
 
Line 1: Line 1:
Measure spanners are an alternate way to print annotated brackets. As opposed to horizontal brackets, they extend between two bar lines rather than two notes. The text is displayed in the center of the bracket.
Measure spanners are an alternate way to print annotated brackets. As opposed to horizontal brackets, they extend between two bar lines rather than two notes. The text is displayed in the center of the bracket.


<lilypond version="2.24" full>
<lilypond version="2.24">
\paper { tagline = ##f }
 
\layout {
\layout {
   \context {
   \context {
Line 27: Line 25:
     \key d \minor
     \key d \minor
     \tweak text "Subject"
     \tweak text "Subject"
    \tweak direction #DOWN
      \tweak direction #DOWN
    \startMeasureSpanner
      \startMeasureSpanner
     \tuplet 3/2 8 {
     \tuplet 3/2 8 {
       d16[ e f] g[ f e] f[ g a] bes[ a g]
       d16[ e f] g[ f e] f[ g a] bes[ a g]
Line 36: Line 34:
     \stopMeasureSpanner
     \stopMeasureSpanner
     \tweak text "Counter-subject"
     \tweak text "Counter-subject"
    \tweak direction #DOWN
      \tweak direction #DOWN
    \startMeasureSpanner
      \startMeasureSpanner
     f8 e a r r16 b, c d e fis g e
     f8 e a r r16 b, c d e fis g e
     a gis a b c fis, b a gis e a4 g8
     a gis a b c fis, b a gis e a4 g8
Line 45: Line 43:
</lilypond>
</lilypond>


[[Category:Contexts and engravers]]
[[Category:Editorial annotations]]
[[Category:Editorial annotations]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]
[[Category:Snippet]]