Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2573)

Issue 7019045: canonicalise notional octave of tonic (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by pkx166h
Modified:
11 years, 4 months ago
Reviewers:
benko.pal, zefram
CC:
lilypond-devel_gnu.org
Base URL:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Visibility:
Public.

Description

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.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M lily/music.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 3
pkx166h
Patch submitted on behalf of zefram@fysh.org
11 years, 4 months ago (2012-12-26 21:31:14 UTC) #1
benko.pal
LGTM
11 years, 4 months ago (2012-12-27 10:23:26 UTC) #2
pkx166h
11 years, 4 months ago (2013-01-01 12:04:31 UTC) #3
author	Zefram <zefram@fysh.org>	
Mon, 24 Dec 2012 23:00:35 +0000 (23:00 +0000)
committer	James Lowe <pkx166h@gmail.com>	
Tue, 1 Jan 2013 12:02:48 +0000 (12:02 +0000)
commit	60015c1d4aff30a610dced9a565fc1a6cb292be2
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b