lilypond-user
[Top][All Lists]
Advanced

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

Re: Trying to do a template


From: Mats Bengtsson
Subject: Re: Trying to do a template
Date: Fri, 25 Nov 2005 09:58:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

You cannot define a macro (or identifier or whatever you want to
call it) that does not contain a complete expression. Since the syntax
for \new is something like
\new <ContextType> \with <ContextSettings> <Music>
it means that you have to include also the music itself in the
\blankchords in order to get a correct syntax.

I recommend that you instead look at Section "9.1.5 Changing
context default settings" in the manual for a more convenient
way to obtain what you want to do.

Also, please always tell what LilyPond version you use when
asking questions on the mailing list.

 /Mats




joeyc (sent by Nabble.com) wrote:

Hi,

I am trying my first template and things aren't working out...
I make a template called blankchords, but it I get an error.

what's wrong here...

thanks
joey



blankchords = \new ChordNames \with {
\override BarLine #'bar-size = #4
voltaOnThisStaff = ##t
\consists Bar_engraver
\consists "Volta_engraver"
\consists "Percent_repeat_engraver"
}

\blankchords
\chordmode
{
        \repeat volta 2
        {
                \partial 8 s8 | f2:maj f:7 \repeat "percent" 2 {bes1:7}
                c:maj c:maj c:maj c:maj c:maj c:maj c:maj
        }
        \alternative { es e }
}

------------------------------------------------------------------------
Sent from the Gnu - Lilypond - User <http://www.nabble.com/Trying-to-do-a-template-t615301.html#a1642968> forum at Nabble.com.

------------------------------------------------------------------------

_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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