lilypond-user
[Top][All Lists]
Advanced

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

Can an identifier contain a \score?


From: Mark Cookson
Subject: Can an identifier contain a \score?
Date: Sun, 6 Nov 2005 22:47:09 +0000

I'm going to use Lilypond to write out some scales for my students, and I'd like to define each scale as an identifier, so that I can then simply \include a file full of scale definitions and type the name of each scale I want to write out for a particular student.

When I do it this way...

cmajoroneoctave = {
  \new Staff <<  \relative c' {
    \override Staff.TimeSignature #'transparent = ##t \cadenzaOn c8[ d e f] g[ a b c] b[ a g f] e[ d] c4 \cadenzaOff \bar "||"
      }
>> }

\book { \header {\title = "Grade 5 Scales"}
\score {
  \cmajoroneoctave}
}



...things work fine, but what I'd really like to do is to make the \score block part of the \cmajoroneoctave identifier, so that the \book block can just contain a list of scale names.

However, I can't seem to get anything along these lines...

cmajoroneoctave = { \score {
  \new Staff <<  \relative c' {
    \override Staff.TimeSignature #'transparent = ##t \cadenzaOn c8[ d e f] g[ a b c] b[ a g f] e[ d] c4 \cadenzaOff \bar "||"
      }
 }
>> }

\book { \header {\title = "Grade 5 Scales"}
\cmajoroneoctave
}

...to work.
Am I just using the wrong syntax, or is this not possible?

Thanks in advance

Mark


reply via email to

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