lilypond-user
[Top][All Lists]
Advanced

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

Strange transposing effect


From: D'Arcy J.M. Cain
Subject: Strange transposing effect
Date: Wed, 25 May 2011 19:57:56 -0400

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?

\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 = {
    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 { }
}


-- 
D'Arcy J.M. Cain <address@hidden>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.

Attachment: test.pdf
Description: Adobe PDF document


reply via email to

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