lilypond-user
[Top][All Lists]
Advanced

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

Re: \path command


From: MING TSANG
Subject: Re: \path command
Date: Fri, 27 Sep 2013 19:01:50 -0700 (PDT)

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 <address@hidden>
To: 'Martin Tarenskeen' <address@hidden>; 'MING TSANG' <address@hidden>
Cc: 'lilypond-user mailinglist' <address@hidden>
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:address@hidden]
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


reply via email to

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