lilypond-user
[Top][All Lists]
Advanced

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

Re: globals and grace notes


From: Paul Scott
Subject: Re: globals and grace notes
Date: Mon, 01 Mar 2004 16:52:43 -0700
User-agent: Mozilla Thunderbird 0.5 (X11/20040221)

David Raleigh Arnold wrote:

On Sunday 29 February 2004 23:06, Paul Scott wrote:
Using globals helps me save a lot of typing and makes time and
measure number mistakes far less likely.  Is there a way I can
eliminate the extraneous 4/4 and extra bar line at the end of this
example?

TIA,

Paul Scott

I couldn't figure out what was wrong with the 2/4, but I got the
extra bar with a sneaky trick using \partial:

\score{
   \context Staff <<
        \context Voice { \notes %\time 2/4
\partial 2 \skip 2*3 } \context Voice { \notes \relative c {
                \time 2/4
                \repeat volta 2 { \acciaccatura{ fis16[ gis ais] }
b8 r r4 } \repeat volta 2 { \grace{ fis16[( gis ais] }
                                  b8) r r4 }
                \repeat volta 2 { \appoggiatura{ fis16[( gis ais] }
                                  b8) r r4 }

            }
        }
   >>
}
Thanks, Dave.

With 2.1.28 your version *does* solve the 2/4 problem. OTOH it removes the \time statement from the definition that I want to be my global. These globals are so that I don't have to type anything for each part which could be typed once for the whole composition. So far grace notes are the only thing that wreck my scheme which is what this test was about.

Here's a new example which takes a previous grace type operation to get another one to recognize a slur.

I'm still trying to find someone who has an answer to placing structure in one place so that it doesn't have to be typed more than once and can be seen better. Does sly help in this?

Thanks.

Paul




global = \notes{ 
    { \time 2/4 \skip 2*2 } 
}

\score{ %part a
    \context Staff <<
        \global
        {
            \notes\relative c {
                \repeat volta 2 { \acciaccatura{ fis16[ gis ais] }
                                  b8 r r4 }
                \repeat volta 2 { \grace{ fis16[( gis ais] }
                                  b8) r r4 }
            }
        }
    >>
}

\score{ %part b
    \context Staff <<
        \global
        {
            \notes\relative c' {
                \repeat volta 2 { \grace{ fis16[( gis ais] }
                                  b8) r r4 }
                \repeat volta 2 { fis8 r r4 }
            }
        }
    >>
}

Attachment: grace2.pdf
Description: Adobe PDF document


reply via email to

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