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

Issue 4430063: First step towards fixing the cross staff problem (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by MikeSol
Modified:
13 years ago
Reviewers:
hanwenn
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

First step towards fixing cross staff problem

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -4 lines) Patch
M lily/beam-collision-engraver.cc View 3 chunks +54 lines, -3 lines 3 comments Download
M ly/engraver-init.ly View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 2
MikeSol
This patch seems to get everything right in the beam-collision engraver. If the typesetting in ...
13 years ago (2011-04-24 12:14:16 UTC) #1
hanwenn
13 years ago (2011-04-24 13:41:49 UTC) #2
http://codereview.appspot.com/4430063/diff/1/lily/beam-collision-engraver.cc
File lily/beam-collision-engraver.cc (right):

http://codereview.appspot.com/4430063/diff/1/lily/beam-collision-engraver.cc#...
lily/beam-collision-engraver.cc:95: // First, find the staves to which any
covered grob may belong
this is weird; why dont you extract the list of staves directly from stems ?

http://codereview.appspot.com/4430063/diff/1/lily/beam-collision-engraver.cc#...
lily/beam-collision-engraver.cc:102: staff_symbols.insert
(Staff_symbol_referencer::get_staff_symbol (covered_grob));
This is unidiomatic: it's better to use the originating staff context for this,
as that is translation information rather than backend info . This
implementation will stop working if somebody removes Staff_symbol_engraver.

maybe add a TODO about this.

http://codereview.appspot.com/4430063/diff/1/lily/beam-collision-engraver.cc#...
lily/beam-collision-engraver.cc:119: for (it = staff_symbols.begin (); it !=
staff_symbols.end (); it++)
why a loop?

you can do 

 staff_symbols.find(Staff_referencer::get_staff_sym(covered))
Sign in to reply to this message.

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