You understood correctly. The solution you suggested would work, but is less neat for my needs.
The reason I want to have transposed lilypond code is that I have a fragment of music I've written
to be included in a longer piece. I already have it in lilypond code in the E key. Now the piece
is complete, with this section in the F key.
I now have lilypond code of the middle section in one file (still in E) and of everything else
in another file. I want them both neatly in one file, with no \transpose.


On Tue, 04 Jan 2005 10:08:02 +0100, Mats Bengtsson <[EMAIL PROTECTED]> wrote:

If I understand you correctly, you want a new .ly file whose content
is a transposed version of another .ly file. However, I don't understand
why you would need such a thing. The following example shows how you can
combine fragments of music written for different transpositions into a
single part:

\version "2.4.2"

transposedsection = \relative c' {
   \key d \major
   d4 e fis g a g fis e d1
}

\relative c'{
c4 e g e
\transpose d c {\transposedsection}
}

    /Mats

Yuval Harel wrote:
Hi all,
I've got a fragment of music that I want to transpose, in order to insert the transposed fragment to another file. I want the output to contain the music already tranposed (without \transpose).
Is there any tool available to do that?
Thanks,
Yuval







_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to