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

Issue 4974075: Add support for custom ledger positions, using two new staff-symbol properties (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by piers
Modified:
12 years, 6 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Add support for custom ledger positions, using two new staff-symbol properties See http://code.google.com/p/lilypond/issues/detail?id=1292 for the proposal. This also adds support for internal ledger lines, and hence resolves issue http://code.google.com/p/lilypond/issues/detail?id=1193 A regression test for ledger positions is added. This causes one change in the current regression tests, namely an internal ledger line is added to staff-line-positions.ly. I don't think it is a problem to have internal ledger lines by default.

Patch Set 1 #

Total comments: 8

Patch Set 2 : incorporate joeneemans comments #

Total comments: 12

Patch Set 3 : incorporate Neil Puttock's comments #

Patch Set 4 : fixed sigabrt, added/restored several checks #

Total comments: 2

Patch Set 5 : new patch: add checks and warnings for ledger_positions, fix issue #1972 #

Total comments: 3

Patch Set 6 : simpler and more direct check for loop conditions #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M lily/staff-symbol.cc View 1 2 3 4 5 3 chunks +4 lines, -0 lines 1 comment Download

Messages

Total messages: 21
piers
Please review my contribution to this wonderful project. Maybe still in time for 2.16 :) ...
12 years, 7 months ago (2011-09-09 16:37:06 UTC) #1
piers
12 years, 7 months ago (2011-09-09 17:03:33 UTC) #2
pkx166h
Added http://code.google.com/p/lilypond/issues/detail?id=1878
12 years, 7 months ago (2011-09-09 17:48:01 UTC) #3
pkx166h
Passes make and reg tests
12 years, 7 months ago (2011-09-10 10:25:48 UTC) #4
joeneeman
http://codereview.appspot.com/4974075/diff/1/lily/ledger-line-spanner.cc File lily/ledger-line-spanner.cc (right): http://codereview.appspot.com/4974075/diff/1/lily/ledger-line-spanner.cc#newcode362 lily/ledger-line-spanner.cc:362: ledgers.add_stencil (ledger_line); Since you no longer seem to be ...
12 years, 7 months ago (2011-09-13 21:28:58 UTC) #5
piers
http://codereview.appspot.com/4974075/diff/1/lily/ledger-line-spanner.cc File lily/ledger-line-spanner.cc (right): http://codereview.appspot.com/4974075/diff/1/lily/ledger-line-spanner.cc#newcode362 lily/ledger-line-spanner.cc:362: ledgers.add_stencil (ledger_line); On 2011/09/13 21:28:58, joeneeman wrote: > Since ...
12 years, 7 months ago (2011-09-13 23:47:20 UTC) #6
pkx166h
Passes make and reg tests
12 years, 7 months ago (2011-09-14 21:37:47 UTC) #7
Neil Puttock
http://codereview.appspot.com/4974075/diff/8001/input/regression/staff-ledger-positions.ly File input/regression/staff-ledger-positions.ly (right): http://codereview.appspot.com/4974075/diff/8001/input/regression/staff-ledger-positions.ly#newcode4 input/regression/staff-ledger-positions.ly:4: by setting the @code{ledger-positions} property of the StaffSymbol. wrap ...
12 years, 7 months ago (2011-09-14 22:12:22 UTC) #8
piers
On 2011/09/14 22:12:22, Neil Puttock wrote: > http://codereview.appspot.com/4974075/diff/8001/input/regression/staff-ledger-positions.ly > File input/regression/staff-ledger-positions.ly (right): > > http://codereview.appspot.com/4974075/diff/8001/input/regression/staff-ledger-positions.ly#newcode4 ...
12 years, 7 months ago (2011-09-15 13:43:48 UTC) #9
Neil Puttock
On 15 September 2011 14:43, <pierstitus@gmail.com> wrote: > Done, typical beginner imperfections, thanks for pointing ...
12 years, 7 months ago (2011-09-15 21:41:27 UTC) #10
pkx166h
On 2011/09/15 21:41:27, Neil Puttock wrote: > For some reason, your patch fails `make check' ...
12 years, 7 months ago (2011-09-15 22:04:00 UTC) #11
Neil Puttock
On 15 September 2011 23:04, <pkx166h@gmail.com> wrote: > On 2011/09/15 21:41:27, Neil Puttock wrote: > ...
12 years, 7 months ago (2011-09-15 22:05:51 UTC) #12
piers
On 2011/09/15 22:05:51, Neil Puttock wrote: > On 15 September 2011 23:04, <mailto:pkx166h@gmail.com> wrote: > ...
12 years, 7 months ago (2011-09-16 13:25:15 UTC) #13
piers
regtests now build with --disable-optimising. Everything should be OK by now.
12 years, 7 months ago (2011-09-16 20:30:11 UTC) #14
pkx166h
Passes make and reg tests
12 years, 7 months ago (2011-09-17 13:16:32 UTC) #15
janek
Hi, i see that i'm the owner of the tracker issue 1193 (and i suppose ...
12 years, 7 months ago (2011-09-25 09:40:12 UTC) #16
Keith
Piers, there are segfaults and infinite loops reported at http://code.google.com/p/lilypond/issues/detail?id=1972 http://codereview.appspot.com/4974075/diff/21001/lily/staff-symbol.cc File lily/staff-symbol.cc (right): http://codereview.appspot.com/4974075/diff/21001/lily/staff-symbol.cc#newcode186 ...
12 years, 6 months ago (2011-10-17 05:11:59 UTC) #17
piers
On 2011/10/17 05:11:59, Keith wrote: > Piers, there are segfaults and infinite loops reported at ...
12 years, 6 months ago (2011-10-17 14:49:14 UTC) #18
Keith
Most of the complexity is due to the repeating cycle facility. First, you might try ...
12 years, 6 months ago (2011-10-17 18:56:58 UTC) #19
piers
New, simpler, patch added On 2011/10/17 18:56:58, Keith wrote: > Most of the complexity is ...
12 years, 6 months ago (2011-10-22 20:16:14 UTC) #20
Keith
12 years, 6 months ago (2011-10-25 01:39:39 UTC) #21
One obvious change to get it to compile, and then it looks good to me.

If you email me a patch from `git format-patch` I'll push it with you as author;
otherwise I'll just push it after countdown.

http://codereview.appspot.com/4974075/diff/33001/lily/staff-symbol.cc
File lily/staff-symbol.cc (right):

http://codereview.appspot.com/4974075/diff/33001/lily/staff-symbol.cc#newcode188
lily/staff-symbol.cc:188: if (!is_pair(s) || cycle < 0.1)
if (!scm_is_pair (s) || cycle < 0.1)

You can run  `scripts/auxiliar/fixcc.py foo.cc`
to put in the GNU-coding-style spaces.
Sign in to reply to this message.

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