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"

 

\header {

                title = "Mary Had a Little Lamb"

}

 

fishA = \markup {

  \postscript #"0.5 setlinewidth 5 0 moveto -7 6 -10 -7 -0.5 3 rcurveto
stroke"

}

 

fishB = \markup {

  \postscript #"0.5 setlinewidth 5 -1 moveto -7 6 -10 -7 -0.5 3 rcurveto
stroke"

}

 

rh = \relative c' {

                \time 2/4 \key c \major \clef treble

                e8 d c-\fishB d e e e4

                d8 d d4 e8 g g4

                e8 d c d e e e e-\fishA

                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,-\fishA <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 { }

}

 

From: lilypond-user-bounces+lilypond=fishlet....@gnu.org
[mailto:lilypond-user-bounces+lilypond=fishlet....@gnu.org] On Behalf Of
MING TSANG
Sent: Tuesday, September 24, 2013 6:49 AM
To: Robin Bannister; David Nalesnik
Cc: lilypond-user@gnu.org
Subject: Re: \path command

 

Robin,  Thank you for clear the undesired background. I do hope I can do
this in \path command.

 

  _____  

From: Robin Bannister <r...@dataway.ch>
To: MING TSANG <tsan...@rogers.com>; David Nalesnik
<david.nales...@gmail.com> 
Cc: lilypond-user@gnu.org 
Sent: Tuesday, September 24, 2013 9:34:14 AM
Subject: Re: \path command


MING TSANG wrote: 
>  works fine except I have undesired background image 

Here is a black & white version.


Cheers, 
Robin

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to