lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Large square brackets for modern notation


From: Mark Polesky
Subject: Re: Large square brackets for modern notation
Date: Sat, 20 Jun 2009 10:18:50 -0700 (PDT)

Francisco Vila wrote:
> This slight improvement does each bracket without releasing the pencil
> and hopefully will you help to position it by modifying only the
> starting point. Also, the line joints are round.
>
> #(define lbracket "0.25 setlinewidth
> 0.5 -2 moveto
> -2 0 rlineto
> 0 8.8 rlineto
> 2 0 rlineto
> stroke")
>
> #(define rbracket "0.25 setlinewidth
> 0.5 -2 moveto
> 2 0 rlineto
> 0 8.8 rlineto
> -2 0 rlineto
> stroke")

If the line joints are round here, that's luck, and it won't
always work. You need to explicitly state setlinejoin to 1:

#(define lbracket "0.25 setlinewidth
1 setlinejoin
0.5 -2 moveto
-2 0 rlineto
0 8.8 rlineto
2 0 rlineto
stroke")

#(define rbracket "0.25 setlinewidth
1 setlinejoin
0.5 -2 moveto
2 0 rlineto
0 8.8 rlineto
-2 0 rlineto
stroke")

- Mark


      




reply via email to

[Prev in Thread] Current Thread [Next in Thread]