String number extender lines: Difference between revisions

Import snippet from LSR
 
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Make an extender line for string number indications, showing that a series of notes is supposed to be played all on the same string.
Make an extender line for string number indications, showing that a series of notes is supposed to be played all on the same string.


<lilypond version="2.24.0">
<lilypond version="2.24">
stringNumberSpanner =
stringNumberSpanner =
   #(define-music-function (StringNumber) (string?)
   #(define-music-function (StringNumber) (string?)
Line 11: Line 11:
         \markup { \circle \number $StringNumber }
         \markup { \circle \number $StringNumber }
     #})
     #})


\relative c {
\relative c {
   \clef "treble_8"
   \clef "treble_8"
  \stringNumberSpanner "5"
   \textSpannerDown
   \textSpannerDown
   a8\startTextSpan
   \stringNumberSpanner "5" a8\startTextSpan b c d
  b c d e f\stopTextSpan
    e f\stopTextSpan \stringNumberSpanner "4" g\startTextSpan a |
  \stringNumberSpanner "4"  
  g\startTextSpan a  
   bes4 a g2\stopTextSpan
   bes4 a g2\stopTextSpan
}
}
</lilypond>
</lilypond>


[[Category:Fretted strings]]
[[Category:Editorial annotations]]
[[Category:Editorial annotations]]
[[Category:Fretted strings]]
[[Category:Fretted strings]]
[[Category:Scheme]]
[[Category:Text]]
[[Category:Text]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Scheme]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]