lilypond-user
[Top][All Lists]
Advanced

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

Re: Glissando


From: Mats Bengtsson
Subject: Re: Glissando
Date: Fri, 03 Dec 2004 12:27:36 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

You didn't manage to convert the first markup to the correct syntax.

glisslinescript = \markup{
"\\embeddedps{ 0.2 setlinewidth 1 6 moveto 3 -8 lineto stroke}" \halign #1 { \italic gliss. } }


Also, to use these definitions, you have to specify to LilyPond if you
want the markup above the note: d^\glisslinescript
or below: d_\glisslinescript
or if you want LilyPond itself to determine: d-\glisslinescript,
just as for all other text scripts.

However, I guess you will have to adjust the parameters in the
Postscript code to get what you want.

   /Mats

Brett Duncan wrote:
Mats Bengtsson wrote:

As you noted, the \postcript markup command wasn't available in
version 2.2, but you could use
\markup{ "\\embeddedps{...}" } as a replacement for
\markup{ \postscript #"..." }

    /Mats


hi Mats,

I tried your suggestion, but I think I'm screwing up the syntax somewhere - here's my test file:

-------------------
\version "2.2.2"

glisslinescript = \markup{
"\\embeddedps{ 0.2 setlinewidth 1 6 moveto 3 -8 lineto stroke \halign #1 { \italic gliss. } }" }

glissline = \markup{
    "\\embeddedps { 0.2 setlinewidth 1 6 moveto 3 -8 lineto stroke }" }

glisslinewide = \markup{
    "\\embeddedps{ 0.2 setlinewidth 1 6 moveto 5.5 -8 lineto stroke }" }

\score {

    \notes{
        \new Staff {
        \clef treble
        \time 4/4
            {
            c1\glisslinescript d\glissline e\glisslinewide
            }
        }
} \paper {
        #(set-paper-size "a4")
    }
}
-------------------

and the message that results:

/Users/bduncan/lilypond/glissbits.ly:19:22: error: Have to be in Lyric mode for lyrics:
                        c1\glisslinescript
                                           d\glissline e\glisslinewide

(etc.)

Where have I messed up?

Brett
__________________
Brett Duncan
address@hidden





reply via email to

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