\version "2.22.2" \language "deutsch" \header{ title = "Iedere nacht verlang ik" tagline = ##f } bbarre = #(define-music-function (barre location str music) (string? ly:music?) (let ((elts (extract-named-music music '(NoteEvent EventChord)))) (if (pair? elts) (let ((first-element (first elts)) (last-element (last elts))) (set! (ly:music-property first-element 'articulations) (cons (make-music 'TextSpanEvent 'span-direction -1) (ly:music-property first-element 'articulations))) (set! (ly:music-property last-element 'articulations) (cons (make-music 'TextSpanEvent 'span-direction 1) (ly:music-property last-element 'articulations)))))) #{ \once \override TextSpanner.font-size = #-2 \once \override TextSpanner.font-shape = #'upright \once \override TextSpanner.staff-padding = #3 \once \override TextSpanner.style = #'line \once \override TextSpanner.to-barline = ##f \once \override TextSpanner.bound-details = #`((left (text . ,#{ \markup { \draw-line #'( 0 . -.5) } #}) (Y . 0) (padding . 0.25) (attach-dir . -2)) (right (text . ,#{ \markup { #str } #}) (Y . 0) (padding . 0.25) (attach-dir . 2))) %% uncomment this line for make full barred % \once \override TextSpanner.bound-details.left.text = \markup{"B" #str} $music #}) melody = \relative { \set fingeringOrientations = #'(down) \mergeDifferentlyHeadedOn \mergeDifferentlyDottedOn \key g \major \time 4/4 \voiceOne \partial 4. h'8 e fis \bar ".|:" e, e' h e, a, [] h e, [e'] [] d, e [] a [g] g [e] e g \bbarre #"II" { fis d h d \autoBeamOff fis } g d, [fis'] \autoBeamOn c, c' e g a [d,] [h,] e, a e c [h,] e, g' a [e] e, e' h g e, h'' e fis } bass = \relative { \set fingeringOrientations = #'(down) \key g \major \time 4/4 \voiceTwo \partial 4. s4. 4. e8 a,4 d 4. g8 4 a e h2 r8 e d4 c4. c8 d4 8 4 a4. 8 4 e a, d 2 e, \bar ":|." } \score { \new Staff = "guitar" << \tempo 4 = 78 \context Voice = "upper" { \melody } \context Voice = "lower" { \bass } >> \layout { \context { \Score \remove "Bar_number_engraver" \override Fingering.staff-padding = #'() \omit TupletNumber \override TupletBracket.bracket-visibility = ##f } } }