lilypond-user
[Top][All Lists]
Advanced

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

Re: structured small files


From: Erik Sandberg
Subject: Re: structured small files
Date: Sun, 15 Dec 2002 15:41:08 +0100

On Sunday 15 December 2002 10.53, neuro wrote:
> Is this list still working?
>
> How do I make a structured .ly like ..
> If I want some scales exercies, for example, for the piano,
> from major/minor with no incidentals, then increasing the shart and flat
> incidentals one by one,
> may I write the various files elsewhere, one for each line, like
> c_major.ly c_minor.ly g_major.ly g_minor.ly f_major.ly f_minor.ly ...
> [ (7 sharps + 7 flats + no incidentas)*2 = 30 files ]
> then includes all the small scale files into the final one, and it would
> have 30 lines.

I do not fully understand exactly what you want... but if you want one score 
for each scale, then put one score with one scale in each file (like "\score 
{\notes {\key c \major c d e f g a b c'}}"), and then create a file all.ly 
containing
\include "c_major.ly"
\include "c_minor.ly"
...
and so on, 30 lines.

However, in this particular case it would be even more clever to make use of 
variables and \transpose, i.e. define the scale exercise for just one key 
once (like MajorScale = \notes {\key c \major c d e f g a b c'}) and then use 
"\transpose f' \MajorScale" to get a f major scale. This will transpose the 
key as well as all the notes to the new key.

Erik



reply via email to

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