Dear Nick,
I've modified Your code a little bit.
Unfortunately I'm not able to move the brackets vertically.
Do You know hot to do this?
Thanks for Your help
Stefan
\version "2.13.3"



% rechte und linke Klammer weden erzeugt
 linksKlammer = \markup { \postscript #" 0.25 setlinewidth

                0 setlinejoin

                0 setlinecap

                0.5 -2 moveto

                -2 0 rlineto

                0 8.8 rlineto

                2 0 rlineto

stroke "  }

rechtsKlammer = \markup { \postscript #" 0.25 setlinewidth

                0 setlinejoin

                0 setlinecap

                0.5 -2 moveto

                2 0 rlineto

                0 8.8 rlineto

                -2 0 rlineto

stroke" }

\relative c''' {
  e-\markup{ \raise #1 \linksKlammer } %raise does not work!
  e e e -\rechtsKlammer
}


2009/8/23 Nick Payne <nick.pa...@internode.on.net>

>  The box could be drawn with Postscript. Here’s an example of drawing
> large square brackets with Postscript. Easily modifiable to draw a box:
>
>
>
> \version "2.12.1"
>
>
>
> #(define lbracket "0.25 setlinewidth
>
>                 0 setlinejoin
>
>                 0 setlinecap
>
>                 0.5 -2 moveto
>
>                 -2 0 rlineto
>
>                 0 8.8 rlineto
>
>                 2 0 rlineto
>
>                 stroke")
>
> #(define rbracket "0.25 setlinewidth
>
>                 0 setlinejoin
>
>                 0 setlinecap
>
>                 0.5 -2 moveto
>
>                 2 0 rlineto
>
>                 0 8.8 rlineto
>
>                 -2 0 rlineto
>
>                 stroke")
>
>
>
> \relative c' {
>
>                 c4-\markup { \postscript #lbracket } c c c-\markup {
> \postscript #rbracket }
>
> }
>
>
>
> Nick Payne
>
>
>
> *From:* lilypond-user-bounces+nick.payne=internode.on....@gnu.org [mailto:
> lilypond-user-bounces+nick.payne <lilypond-user-bounces%2Bnick.payne>=
> internode.on....@gnu.org] *On Behalf Of *Stefan Thomas
> *Sent:* Sunday, 23 August 2009 5:43 PM
> *To:* lilypond-user
> *Subject:* boxed measures
>
>
>
> Dear community,
> I would like to do something like You can see in the attached image.
> I don't mean the feathered beams (I know how this can be done) but the
> boxed bars, followed by the dotted lines.
> I have no idea how to do this in Lilypond.
> A hint would be great!
> Thanks
> Stefan
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.409 / Virus Database: 270.13.64/2318 - Release Date: 08/22/09
> 18:04:00
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to