lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \transpose question


From: Flaming Hakama by Elaine
Subject: Re: \transpose question
Date: Fri, 8 Oct 2021 11:14:33 -0700


---------- Forwarded message ----------
From: Mark Probert <mark@archsys.net>
To: Lily Pond <lilypond-user@gnu.org>
Cc: 
Bcc: 
Date: Fri, 8 Oct 2021 10:36:37 +1100
Subject: \transpose question

Hi.

A question on transpose: I understand that "\transpose distinguishes
between enharmonic pitches," however is there anyway to force a
particular behaviour? For example, in the snippet below, when I have a
movement from C to C# in the original key, and then go up a tone with
"\transpose c d," I get "D and D#" (which is correct based on the
provided notes and chords), however I want "D and Eb" (the other
enharmonic).

Is there a way to do this?

Thanks .. mark.

--
\version "2.22"

melody = \relative c' {
  \clef treble
  c8 d ees f g4 r4 \bar "||"
  cis,8 dis e fis gis4 r4 \bar "||"
}

harmony = \chordmode {
  c1:m7 cis1:m7
}

song = {
  <<
    \new ChordNames \harmony
    \new Staff      \melody
  >>
}

trans = {
  \transpose c c { \song }
  \transpose c d { \song }
}

\score {
  \trans
}

Since you are choosing to spell chords differently in terms of #1 vs b2, you are not just trying to do a transposition.

Rather, you are choosing to respell the harmony.

Well, you are doing both--for some keys you will just be transposing.  For the others, you are changing the harmonic spelling, and transposing.

Basically, you will have to have more than one source.  
But you will probably only need 2, one spelled as #1 and the other as b2.

Your organization was a little confusing, as it created extra staves.
Here is how I would demo it


\version "2.19.83"

melodySharpOne = \relative c' {
  \clef treble
  c8 d ees f g4 r4
  cis,8 dis e fis gis4 r4 \bar "||"
}
melodyFlatTwo = \relative c' {
  \clef treble
  c8 d ees f g4 r4
  des8 ees fes ges aes4 r4 \bar "||"
}

harmonySharpOne = \chordmode {
  c1:m7 cis1:m7
}
harmonyFlatTwo = \chordmode {
  c1:m7 des1:m7
}

<<
  \new ChordNames {
    \transpose c c \harmonySharpOne
    \transpose c cis \harmonyFlatTwo
    \transpose c d \harmonyFlatTwo
    \transpose c dis \harmonyFlatTwo
    \transpose c ees \harmonySharpOne
  }
  \new Staff {
    \transpose c c \melodySharpOne
    \transpose c cis \melodyFlatTwo
    \transpose c d \melodyFlatTwo
    \transpose c dis \melodyFlatTwo
    \transpose c ees \melodySharpOne
  }
>>


HTH,

Elaine Alt
415 . 341 .4954                                           "Confusion is highly underrated"
elaine@flaminghakama.com
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]