[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fixing issue 37 with extra position callback (issue3928041)
From: |
hanwenn |
Subject: |
Re: Fixing issue 37 with extra position callback (issue3928041) |
Date: |
Sun, 23 Jan 2011 18:12:57 +0000 |
http://codereview.appspot.com/3928041/diff/30001/lily/beam.cc
File lily/beam.cc (right):
http://codereview.appspot.com/3928041/diff/30001/lily/beam.cc#newcode1015
lily/beam.cc:1015: return ly_interval2scm (pos);
On 2011/01/23 18:05:39, hanwenn wrote:
it looks like this only handles the 1st collision found, and exits
after
circumventing the first one. The risks are
* in case of multiple grobs, the resolution is dependent on the order
of
constructing the covered grobs list. Unpredictable and arbitrary.
* that you will park the beam on top of something else, like the next
grob you
are skipping with this return.
* in the last case, you may even create a beam with enormous stems
(ugly) that
still has a collision.
Why not calculate all the locations of all covered grobs, and work
collisions
into the scores for beam positions?
See beam-quanting.cc; you'd have to add another scoring pass to
Beam::quanting().
doing it with beam quant scoring instead will free you of getting the
symmetry wrt up/down correct (which has been tricky in my experience).
http://codereview.appspot.com/3928041/
- Re: Fixing issue 37 with extra position callback (issue3928041), (continued)
- Message not available
- Re: Fixing issue 37 with extra position callback (issue3928041), Han-Wen Nienhuys, 2011/01/24
- Re: Fixing issue 37 with extra position callback (issue3928041), Mike Solomon, 2011/01/24
- Re: Fixing issue 37 with extra position callback (issue3928041), Han-Wen Nienhuys, 2011/01/24
- Re: Fixing issue 37 with extra position callback (issue3928041), Han-Wen Nienhuys, 2011/01/24
- Re: Fixing issue 37 with extra position callback (issue3928041), Neil Puttock, 2011/01/24
- Re: Fixing issue 37 with extra position callback (issue3928041), Han-Wen Nienhuys, 2011/01/24
Re: Fixing issue 37 with extra position callback (issue3928041), Carl . D . Sorensen, 2011/01/23
Re: Fixing issue 37 with extra position callback (issue3928041), hanwenn, 2011/01/24
Re: Fixing issue 37 with extra position callback (issue3928041), hanwenn, 2011/01/24
Re: Fixing issue 37 with extra position callback (issue3928041), hanwenn, 2011/01/24
Re: Fixing issue 37 with extra position callback (issue3928041),
hanwenn <=
Re: Fixing issue 37 with extra position callback (issue3928041), k-ohara5a5a, 2011/01/24