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

Issue 4672041: Fix Issue 770: Lyrics attached to a voice-derived context are off by 1 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by Reinhold
Modified:
12 years, 9 months ago
Reviewers:
pkx166h, colinpkcampbell, carl.d.sorensen, Neil Puttock, reinhold
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Fix Issue 770: Lyrics attached to a voice-derived context are off by 1 The Lyric_combine_music_iterator had an explicit check if the CreateContext event was really for a context of type "Voice". Unfortunately, that check fails if the lyrics are supposed to be attached to a CueVoice context (or some self-defined Voice-derived context!), because "CueVoice"!="Voice". Unfortunately, I don't know how to check whether a context "CVoice" (identified only by a the context type string; we don't have any Context* object!) is an alias for Voice. If we had the Context* object, we could use is_alias, but we only have the string "CVoice" and need to check if a context of that type is an alias for "Voice". However, I don't think that check is necessary at all. It simply prevents find_voice from being called in cases when no Voice is generated (and thus no new context to possibly attach the lyrics to). If that check is removed, find_voice will also be called for any other context created while waiting for a voice to attach the lyrics to, but it will not find an appropriate voice anyway. This patch fixes issue 770: http://code.google.com/p/lilypond/issues/detail?id=770

Patch Set 1 #

Patch Set 2 : Added regtest #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -6 lines) Patch
A input/regression/lyric-combine-derived-voice.ly View 1 1 chunk +18 lines, -0 lines 2 comments Download
M lily/lyric-combine-music-iterator.cc View 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 5
Carl
LGTM Carl
12 years, 10 months ago (2011-07-02 14:00:29 UTC) #1
pkx166h
Passes reg tests james
12 years, 10 months ago (2011-07-02 23:36:58 UTC) #2
Neil Puttock
Hi Reinhold, This LGTM, but do you know why removing this code doesn't break the ...
12 years, 9 months ago (2011-07-07 19:21:16 UTC) #3
reinhold_kainhofer.com
Am Donnerstag, 7. Juli 2011, 21:21:16 schrieben Sie: > Hi Reinhold, > > This LGTM, ...
12 years, 9 months ago (2011-07-07 23:20:09 UTC) #4
Colin Campbell
12 years, 9 months ago (2011-07-10 01:53:36 UTC) #5
This has had a 48-hour countdown, and should be pushed and closed, please.

Colin
Sign in to reply to this message.

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