On Apr 22, 7:39, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] writes:
> > Is there any reasonable way to do this: I would like to have one file
> > that can generate the same tune in two different modes without having
> > to go through and rewrite all the music in the other mode.
>
> What do you mean by "mode" ?
By mode I mean musical modes like major, or minor or dorian.
A simple example of a tune would be a scale:
I start with \key A \minor;
The scale is: a b c d e f g a'
Now I want to tranform this melody to dorian (which is like minor but
with the 6th raised). The scale should become
\key A \dorian;
a b c d e fis g a'
The reason I want to do this is that I'm interested in a body of music
that is typeset in minor (aeolian) but traditionally sung in dorian.
(And now often sung in aeolian as well by people who are good at
reading music and didn't grow up in the tradition).
A more "normal" example would be to play the same melody in major and
minor---classical music does this all the time. This would be more
trouble since more than 1 note changes.
The only strategy I could think of was to change the meaning of the
note name. So for example in the case above, if I could do
\notenames { f = \musicalpitch { -1 3 1 } }
to redefine f to be f sharp, then that would work. (Or I could
introduce a new note name and use it when entering the music.)
Unfortunately, this method would require that I declare the entire
note name table over again, which is kind of troublesome.
The other possible strategy would be to make identifiers for every
possible length of note. This also seems rather awkward.