Hey Andrew, Wow, this looks like exactly like my score! Thank you very much, I managed to tweak the values of this code to get exactly the shape I needed.
On a side note, in my searches I noticed it's now possible to define different barline types, and the bracket type looks like it would also do the job very well here... but I can't get the brace to span both staves without having 'horns' (there seems to be some weird spanning behaviour too): \version "2.19.65" \defineBarLine "[" #'("" "[" ".") \defineBarLine "]" #'("]" "" ".") upper = { c''4 \bar "[" 4 4 \bar "]" 4 } lower = { \clef bass c4 4 4 4 } \score { \new PianoStaff << \new Staff { \upper } \new Staff { \lower } >> } Any ideas? I'm stumped. Brent. On 21 May 2018 at 17:10, Andrew Bernard <andrew.bern...@gmail.com> wrote: > Hi Brent, > > Unless I am totally missing the point, this was discussed on the list a > couple of years ago, and a simple solution provided oin LSR 957. Is the > following not what you want? > > Andrew > > ==== > > > % LSR 957 > > #(define-markup-command (openBracket layout props heitgh) (number?) > (interpret-markup layout props > (markup #:line (#:with-dimensions (cons 0 0) (cons 0 0) > (#:path 0.25 > (list (list (quote moveto) 0 0) > (list (quote lineto) -1 0) > (list (quote lineto) -1 (* heitgh -1)) > (list (quote lineto) 0 (* heitgh -1)))))))) > > #(define-markup-command (closeBracket layout props heitgh) (number?) > (interpret-markup layout props > (markup #:line (#:with-dimensions (cons 0 0) (cons 0 0) > (#:path 0.25 > (list (list (quote moveto) 1.3 0) > (list (quote lineto) 2.3 0) > (list (quote lineto) 2.3 (* heitgh -1)) > (list (quote lineto) 1.3 (* heitgh -1)))))))) > > > %%% > > upper = { > c''4 4^\markup\openBracket #14 4^\markup\closeBracket #14 4 > } > > lower = { > \clef bass > c4 4 4 4 > } > > \score { > << > \new Staff { > \upper > } > \new Staff { > \lower > } > >> > \layout { > } > } > > ==== > > > > On 21 May 2018 at 00:31, Brent Annable <brentanna...@gmail.com> wrote: > >> >> 1. Does anybody have an idea how to insert large, cross-staff square >> braces (effectively parenthesizing the entire staff) as in the link below? >> I have no idea how to even start. >> >> >>
brace-barline.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user