On 05/25/2011 05:27 PM, Paul Scott wrote:
On 05/25/2011 04:57 PM, D'Arcy J.M. Cain wrote:
Check out the following code.  Two odd things happen.  First, if I
transpose "\transpose a bf" without the commas it transposes two
octaves higher than expected.  Does this have something to do with the
"relative a,," of the surrounding block?  It certainly seems
counterintuitive.

More problematical, since I haven't figured out a workaround, is the
output.  In the key of A the D is above the A as I would expect since
it is closer to go up than down.  When it switches to Bb the Eb drops
below the Bb even though that is a fifth down.  The higher Eb is still
only a fourth away from the Bb.  What gives?

LeftVerse must be \relative to be transposed with \tranpose

See Transpose in section 1.1.2 of the Notation Reference

Paul


HTH,

Paul Scott

\version "2.10.10"
\include "english.ly"

#(set-global-staff-size 35)

\paper {
   #(set-default-paper-size "letter")
   before-title-space = 0
}

\header {
   title = "Transpose test"
}

Common = {
   \time 4/4
   \key a \major
}

LeftVerse = {

should be:

LeftVerse = \relative c {

     a4. a8 a2
     a4. a8 a2
     d4. d8 d2
     a4. a8 a2
}

LeftLine = \relative a,, {
   \Common
   \clef "bass_8"

   \LeftVerse

   \key bf \major
   \transpose a bf,, {
     \LeftVerse
   }
}

themusic = {
   <<
     \tempo 4 = 160
     \new Staff {
       \set Staff.midiInstrument = "acoustic bass"
       \LeftLine
     }
   >>
}

\score {
   \themusic
   \layout { }
}




_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


--
Paul Scott
Librarian
Southern Arizona Symphony Orchestra


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


--
Paul Scott
Librarian
Southern Arizona Symphony Orchestra

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to