Curt & Martin:
Thank you for the postscript code. I play around with different number, I
finally settle for this code:
\version "2.17.27"
\markup {
\hspace #1.5
\note #"8" #1
"yMt"
%\postscript #"0.5 setlinewidth 5 -1 moveto -15 8 -10 -7 -0.5 3
\postscript #"0.05 setlinewidth 0 -2.5 moveto -14 10 -10 -7 3 5
rcurveto stroke"
\hspace #5
}
Thank you, emanuel,
Ming.
________________________________
From: Curt McDowell <lilyp...@fishlet.com>
To: 'Martin Tarenskeen' <m.tarensk...@zonnet.nl>; 'MING TSANG'
<tsan...@rogers.com>
Cc: 'lilypond-user mailinglist' <lilypond-user@gnu.org>
Sent: Friday, September 27, 2013 6:51:14 PM
Subject: RE: \path command
Martin, you're absolutely right, I should have included an attachment. Sorry
for the time wastage.
Ming, try this version. It's just an idea. You might need to tweak relative
positions and/or make the PostScript more elaborate to draw what you want.
Cheers,
Curt
\version "2.13.51"
\header {
title = "Mary Had a Little Lamb"
subtitle = \markup {
"whose fish"
\hspace #2
\note #"8" #1
\postscript #"0.5 setlinewidth 5 -1 moveto -15 8 -10 -7 -0.5 3
rcurveto stroke"
\hspace #5
"was white as snow"
}
}
rh = \relative c' {
\time 2/4 \key c \major \clef treble
e8 d c d e e e4
d8 d d4 e8 g g4
e8 d c d e e e e
d d e d c2
\bar "|."
}
lh = \relative c {
\clef bass
c8 <e g> g, <e' g> c <e g> g, <e' g>
b <f' g> g, <f' g> c <e g> g, <e' g>
c <e g> g, <e' g> c <e g> g, <e' g>
b <f' g> g, <f' g> c <e g> c4
}
\score {
\new PianoStaff <<
\new Staff { \rh }
\new Staff { \lh }
>>
\layout { }
}
-----Original Message-----
From: Martin Tarenskeen [mailto:m.tarensk...@zonnet.nl]
Sent: Friday, September 27, 2013 12:47 AM
To: Curt McDowell
Cc: 'MING TSANG'; lilypond-user mailinglist
Subject: RE: \path command
On Thu, 26 Sep 2013, Curt McDowell wrote:
> Here's something like that, but using \postscript instead of \path. I
can't get \path at the right origin. It seems to ignore an initial "moveto".
> Even \postscript seems to set the origin differently depending on which
note the markup goes on (hence two versions of the markup below).
>
>
> Cheers,
>
> Curt
>
>
>
> \version "2.13.51"
(....)
Hi,
Thank your for posting your \postscript example.
But before I was able to view the result I had some trouble copying the
lilypond code to a .ly file from my e-mail client (alpine). In the end I
succeeded and was able to compile the example. But it would have saved me
some trouble if the example was given as an attachment to the original
message.
What is the recommended way to share LilyPond example code here in this
mailinglist?
--
MT
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user