|
From: | David Nalesnik |
Subject: | Re: Repeating a section with different transpose |
Date: | Sat, 11 Apr 2015 10:14:56 -0500 |
Hi Eljakim,
all I can offer you is a function to simplify things a little bit.
However, it is necessary to pass two parameters:
- a destination pitch for transposition and key signature
- a markup for use in the title
% --------------------------------------------------------------------
\version "2.18.2"
exercise =
#(define-music-function (parser location p str) (ly:pitch? markup?)
#{
\new GregorianTranscriptionStaff
\clef treble
\key $p \major
\omit Staff.TimeSignature
\transpose c $p {
\relative c'
{
\mark \markup {"Exercise in" $str "major" }
c8[ d] e [f]
}
}
\pageBreak
#})
\score {\exercise c "C" }
\score {\exercise d "D" }
\score {\exercise e "E" }
% --------------------------------------------------------------------
It would be cool to have a function that turns a pitch into a markup, but I
had no luck so far.
[Prev in Thread] | Current Thread | [Next in Thread] |