|
From: | Silvain Dupertuis |
Subject: | Re: Nested transposition |
Date: | Fri, 12 Mar 2021 13:58:24 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 |
\version "2.20.0"
musicA = {
\relative c' {
\clef treble
\key c \major
c'4 d e f g a b c
}
}
musicB = \relative c' {
\clef bass
\key c \major
c, d e f g a b c
}
musicAB = {
\musicA
\transpose a ais { \musicB }
}
musicAC = {
\musicA
\transpose c des { \musicB }
}
\markup { "from c to c sharp => a to a sharp (3 sharps to 10 sharps!)" }
\score {
{
\musicA
\musicB
\break
\musicAB
}
}
\markup { "from c to d double-flat => a to b flat (3 sharps to 2 [=12-10] flats"}
\score {
{
\break
\transpose c a, { \musicAB }
\musicAC
\break
\transpose c a, { \musicAC }
}
}
I am trying to engrave a transposed song. It's written without key signature but is very tonal. It starts in C and ends in C#. I want to transpose it down a minor third. The part in C is fine, but the part in C# ends up as A## and there are far too many double-sharps for it to be performable.
I found the 'minimal accidental' snippet but that looks as if it messes up the tonality - a mixture of A sharp and B flat.
I tried the code below, which get the note names right but the octaves go completely wrong. Is this a bug? It would be a useful feature if it could be corrected.
\version "2.22.0"
\language "english"
{
\transpose c a,
\relative {
c'4 d e f g a b c
\transpose as bf
{cs, ds es fs gs as bs cs}
}
}
Regards,
Peter
mailto:lilypond@ptoye.com
www.ptoye.com
[Prev in Thread] | Current Thread | [Next in Thread] |