[Top][All Lists]

[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.


joeyc (sent by wrote:


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...


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

        \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 <> forum at


lilypond-user mailing list

        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden

reply via email to

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