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
lilypond-user@gnu.org
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: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user