lilypond-auto
[Top][All Lists]
Advanced

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

Re: [Lilypond-auto] Issue 3060 in lilypond: False warnings produced by s


From: lilypond
Subject: Re: [Lilypond-auto] Issue 3060 in lilypond: False warnings produced by simultaneous key changes
Date: Wed, 26 Dec 2012 21:30:58 +0000

Updates:
        Labels: Patch-new

Comment #2 on issue 3060 by address@hidden: False warnings produced by simultaneous key changes
http://code.google.com/p/lilypond/issues/detail?id=3060#c2

canonicalise notional octave of tonic

Nothing deliberately looks at the octave part of the pitch object storing
the tonic of a key-change event; it's not really a meaningful concept.
But comparison with equal? sees the octave, so internal_event_assignment()
reckoned two key changes differing only in this meaningless field to
be different, and therefore not permitted to occur at the same time.
This triggered false warnings of "two simultaneous key-change events"
when two instruments sharing a staff differ in the transposition used
in their music source.

To fix this, always set the octave part of the tonic pitch to the
same value.  This is done when transposing, and since \key operates by
invoking transposition this is the only place that needs to canonicalise.
The canonical octave is number -1; that is, the octave obtained by a
note name with no octave suffix, and so the octave that most commonly
occurred under the non-canonicalising system.

http://codereview.appspot.com/7019045




reply via email to

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