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

Issue 3285042: PartCombine: Implement part-combine texts on the first real note (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by Reinhold
Modified:
13 years, 5 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

PartCombine: Implement part-combine texts on the first real note -) If the context property partCombineTextsOnNote is set, the part-combine texts are not printed immediately if there is a rest, but on the next following note. If the voice contains a note, they are printed immediately This is needed if one voice has a full measure rest and the other e.g. r2 r4 c4. -) The event triggering the part-combine text is cached in that case and the Part_combine_engraver now also listens to note events. The texts are then created at the first moment when a note is encountered.

Patch Set 1 #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -16 lines) Patch
A input/regression/part-combine-text-wait.ly View 1 chunk +25 lines, -0 lines 4 comments Download
M lily/part-combine-engraver.cc View 4 chunks +44 lines, -16 lines 7 comments Download
M ly/engraver-init.ly View 1 chunk +1 line, -0 lines 0 comments Download
M scm/define-context-properties.scm View 1 chunk +2 lines, -0 lines 1 comment Download

Messages

Total messages: 3
Valentin Villenave
Hi Reinhold, it looks quite good; I only have minor comments so hopefully someone more ...
13 years, 5 months ago (2010-11-25 11:21:58 UTC) #1
Neil Puttock
http://codereview.appspot.com/3285042/diff/1/input/regression/part-combine-text-wait.ly File input/regression/part-combine-text-wait.ly (right): http://codereview.appspot.com/3285042/diff/1/input/regression/part-combine-text-wait.ly#newcode10 input/regression/part-combine-text-wait.ly:10: \version "2.13.41" move to top http://codereview.appspot.com/3285042/diff/1/input/regression/part-combine-text-wait.ly#newcode13 input/regression/part-combine-text-wait.ly:13: \set Score.partCombineTextsOnNote ...
13 years, 5 months ago (2010-11-25 17:45:21 UTC) #2
Reinhold
13 years, 5 months ago (2010-11-26 15:07:01 UTC) #3
Included all comments/suggestions and pushed to master.

http://codereview.appspot.com/3285042/diff/1/lily/part-combine-engraver.cc
File lily/part-combine-engraver.cc (right):

http://codereview.appspot.com/3285042/diff/1/lily/part-combine-engraver.cc#ne...
lily/part-combine-engraver.cc:49: bool have_note;
On 2010/11/25 11:21:58, Valentin Villenave wrote:
> Wouldn't "has_note" be more informative? Or perhaps I misunderstood the logic
> here.

I've renamed that variable to note_found_ to make it clearer. (I was thinking of
"we have a tie at that moment"

http://codereview.appspot.com/3285042/diff/1/lily/part-combine-engraver.cc#ne...
lily/part-combine-engraver.cc:91: text_ = make_item ("CombineTextScript",
/*ev?(ev->self_scm ()):*/SCM_EOL);
On 2010/11/25 17:45:21, Neil Puttock wrote:
> What's up with the event-cause setting?

Oops, commented out that part to track down a crash and missed it later on. ev
will not be 0 at that line, since lilypond will have already crashed due to the
first line, anyway. Plus, create_item is only called for ev!=0.

http://codereview.appspot.com/3285042/diff/1/lily/part-combine-engraver.cc#ne...
lily/part-combine-engraver.cc:102: if (have_note || !to_boolean (get_property
("partCombineTextsOnNote")))
On 2010/11/25 17:45:21, Neil Puttock wrote:
> I don't mind either way, but the plural's in keeping with
printPartCombineTexts.

Exactly, I wanted to stay consistent with that property. of course, we can
always rename both properties...

Other properties using plural are e.g. alignBassFigureAccidentals,
extendersOverRests, figuredBassCenterContinuations, harmonicDots,
includeGraceNotes, etc.
Sign in to reply to this message.

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