[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Repeating a section with different transpose
From: |
Klaus Blum |
Subject: |
Re: Repeating a section with different transpose |
Date: |
Fri, 10 Apr 2015 11:48:38 -0700 (MST) |
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.
I hope this helps a bit.
Cheers,
Klaus
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Repeating-a-section-with-different-transpose-tp174340p174348.html
Sent from the User mailing list archive at Nabble.com.