A music expression can be transposed with \transpose
. The syntax
is
\transpose from to musicexpr
This means that musicexpr is transposed by the interval between from and to.
\transpose
distinguishes between enharmonic pitches: both
\transpose c cis
or \transpose c des
will transpose up
half a tone. The first version will print sharps and the second
version will print flats:
mus =\notes { \key d \major cis d fis g } \score { \notes \context Staff { \clef "F" \mus \clef "G" \transpose c g' \mus \transpose c f' \mus }}
If you want to use both \transpose
and \relative
, then
you must put \transpose
outside of \relative
, since
\relative
will have no effect music that appears inside a
\transpose
.
This page is for LilyPond-2.0.0 (stable-branch).