bug-lilypond
[Top][All Lists]
Advanced

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

Re: Problems with \inversion


From: Trevor Daniels
Subject: Re: Problems with \inversion
Date: Thu, 14 Jun 2012 15:03:35 +0100

ALEXANDRE FICAGNA wrote Thursday, June 14, 2012 12:12 PM


> You're right, it worked better with relative for melody.
> Still, it seems that changing from-pitch alters the note of
> transposition, while to-pitch changes absolutely nothing.

David explained the reason for the behaviour in your earlier
note.  In fact the behaviour is quite correct, although maybe
surprising, due to inverting absolute notes and then treating
them as relative.  Perhaps the docs should warn about this
banana skin.

The interval between from-pitch and to-pitch determines
the transposition of the motif after inverting about from-pitch.  
Try the example below.  You'll see the inverted motif begins 
on b after inverting about a' due to the transposition from 
a' to b'.

Another way of looking at it is the inversion takes place
about the mid-point between from-pitch and to-pitch.

Trevor

melody= \relative c'' { a8 gis ees d g4 }

\score {
  \new Staff {
    \clef treble
    \melody
    \inversion a' b' \melody
  }
  \layout {
    indent = #0
    \context {
      \Staff
      \remove "Bar_number_engraver"
      \remove "Time_signature_engraver"
    }
  }
}

reply via email to

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