[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Large square brackets for modern notation
From: |
Nick Payne |
Subject: |
RE: Large square brackets for modern notation |
Date: |
Sun, 21 Jun 2009 13:38:54 +1000 |
As an aside, jpedal as included with LilypondTool renders these brackets
incorrectly if you use mitred corners. If I have
#(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 }
}
jPedal shows the brackets as having bevelled corners rather than mitred
corners. If I load the PDF into Adobe reader, the corners correctly display
as mitred.
Nick
> -----Original Message-----
> From: Mark Polesky [mailto:address@hidden
> Sent: Sunday, 21 June 2009 10:37 AM
> To: Francisco Vila
> Cc: Nick Payne; address@hidden; Qian Li
> Subject: Re: Large square brackets for modern notation
>
>
> Francisco Vila wrote:
>
> > 2009/6/20 Mark Polesky :
> > > If the line joints are round here, that's luck, and it won't
> > > always work. You need to explicitly state setlinejoin to 1:
> >
> > Well, you're right, but it's also true that with independent segments
> > no line joints were possible at all.
>
> True, the problem is when the wrong solution appears to work in a
> particular situation.
>
> Without testing, I'm pretty sure that
>
> 1 setlinecap
> 0 0 moveto 0 1 lineto stroke
> 0 1 moveto 1 1 lineto stroke
> 1 1 moveto 1 0 lineto stroke
> 1 0 moveto 0 0 lineto stroke
>
> would produce the same result as
>
> 1 setlinejoin
> 0 0 1 1 rectstroke
>
> and
>
> 2 setlinecap
> 0 0 moveto 0 1 lineto stroke
> 0 1 moveto 1 1 lineto stroke
> 1 1 moveto 1 0 lineto stroke
> 1 0 moveto 0 0 lineto stroke
>
> would produce the same result as
>
> 0 setlinejoin
> 0 0 1 1 rectstroke
>
> Easy for beginners to get tricked sometimes.
> Hope this helps.
> - Mark
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.339 / Virus Database: 270.12.79/2186 - Release Date:
> 06/19/09 17:56:00
Message not available