\version "2.18.2" halfBoxUp = { \once\override TextSpanner.style = #'line \once\override TextSpanner.thickness = #2 \once\override TextSpanner.to-barline = ##t \once\override TextSpanner.bound-details = #`((left (text . ,#{ \markup { \override #'(thickness . 2) \draw-line #'(0 . -9) } #}) (Y . 0) (padding . -1.5)) (right (text . ,#{ \markup { \override #'(thickness . 2) \draw-line #'(0 . -9) } #}) (Y . 0) (padding . -1.5))) } halfBoxDown = { \once\textSpannerDown \once\override TextSpanner.style = #'line \once\override TextSpanner.thickness = #2 \once\override TextSpanner.to-barline = ##t \once\override TextSpanner.bound-details = #`((left (text . ,#{ \markup { \override #'(thickness . 2) \draw-line #'(0 . 9) } #}) (Y . 0) (padding . -1.5)) (right (text . ,#{ \markup { \override #'(thickness . 2) \draw-line #'(0 . 9) } #}) (Y . 0) (padding . -1.5))) } << \new Staff \relative c'' { c4 \halfBoxUp c8*2 -\tweak #'extra-offset #'(0 . -8) % this tweak to set half box joints if needed \startTextSpan c \stopTextSpan c4 | } \new Staff \relative c' { c4 \halfBoxDown c -\tweak #'extra-offset #'(0 . 8) % this tweak to set half box joints if needed \startTextSpan c \stopTextSpan c | } >>