Re: Draw a box spanning multiple staves
Hi All, I've slightly changed this snippet. Syntax has been simplyfied : \myBox #width #heigth http://lsr.di.unimi.it/LSR/Item?id=953 Cheers, Pierre ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Draw a box spanning multiple staves
Added to the LSR : http://lsr.di.unimi.it/LSR/Item?id=953 Cheers, pierre ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Draw a box spanning multiple staves
Hi Urs, Hi All Sorry to come that late but since I had to use it this morning please find herewith what I come up with so far. Cheers, Pierre <http://lilypond.1069038.n5.nabble.com/file/n167634/urs.png> DrawBoxOnMultipleStaves.ly <http://lilypond.1069038.n5.nabble.com/file/n167634/DrawBoxOnMultipleStaves.ly> - ~Pierre -- View this message in context: http://lilypond.1069038.n5.nabble.com/Draw-a-box-spanning-multiple-staves-tp162643p167634.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Draw a box spanning multiple staves
Am 21.05.2014 11:24, schrieb Urs Liska: Hi, for analysis purposes I'd like to draw (e.g.) boxes around objects on different staves (see attachment). Is there a straightforward and particularly robust way to do that with LilyPond itself (the image was postprocessed)? Hello Urs, sorry for not being able to test this myself, but you might look in the thread at http://www.mail-archive.com/lilypond-user%40gnu.org/msg83249.html, in which a Frame_engraver was created – for another purpose, but with similar results, I think. HTH, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Draw a box spanning multiple staves
2014-05-21 11:24 GMT+02:00 Urs Liska : > for analysis purposes I'd like to draw (e.g.) boxes around objects on > different staves (see attachment). > Is there a straightforward and particularly robust way to do that with > LilyPond itself (the image was postprocessed)? > > Hi Urs, I have nothing miraculous nor elegant but I think that two half boxes offer some flexibility (if that could bring some inspiration). See enclosed. HTH, Pierre \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 | } >>___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Draw a box spanning multiple staves
Hi, for analysis purposes I'd like to draw (e.g.) boxes around objects on different staves (see attachment). Is there a straightforward and particularly robust way to do that with LilyPond itself (the image was postprocessed)? Thanks for any hint Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user