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

Issue 6498052: bar-line interface part 2/2: New bar line definition standard (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by marc
Modified:
11 years, 6 months ago
CC:
lilypond-devel_gnu.org
Base URL:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Visibility:
Public.

Description

The new bar line interface allows for easier extension and modification of the bar lines: * the input string of a bar line called by \bar "<bar string>" resembles the output one-by-one; a repeat sign is called by ":|." * (define-bar-line ...) or \defineBarLine allows for new definitions. These functions have four arguments, namely the bar line itself, the bar line used at the end of line, the bar line used at the begin of a new line and the span bar line. * Annotations for barlines can be added to distinguish between two identical barlines with different break apperance or span bar lines. * To align span bars properly, the space character " " has a special meaning. When it occurs, the width of the resembling glyph in the bar line definition is used. * New glyphs can be added easily. * Volta brackets take the bar line dimensions into account.

Patch Set 1 #

Patch Set 2 : version change in convert-ly #

Patch Set 3 : open new issue #

Total comments: 4

Patch Set 4 : Barline "S-|" added #

Patch Set 5 : Harm's proposals included #

Total comments: 2

Patch Set 6 : span bars start at x = 0; minor corrections #

Total comments: 1

Patch Set 7 : Volta bracket handling added #

Patch Set 8 : robust volta handling algorithm; span bar gap removed #

Patch Set 9 : bump version entries to 2.17.4; include snippet stuff #

Patch Set 10 : empty bar lines are handled correctly; finally! #

Patch Set 11 : difference between no stencil and zero-width stencil reimplemented; syntax change for \defineBarLine #

Patch Set 12 : forgot to run makelsr.py #

Total comments: 4

Patch Set 13 : volta bracket handling corrected #

Total comments: 1

Patch Set 14 : use define-session-public for public alists #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1217 lines, -723 lines) Patch
M Documentation/changes.tely View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M Documentation/de/notation/ancient.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +4 lines, -4 lines 0 comments Download
M Documentation/de/notation/rhythms.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +30 lines, -30 lines 0 comments Download
M Documentation/de/notation/vocal.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M Documentation/es/notation/ancient.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +7 lines, -7 lines 0 comments Download
M Documentation/es/notation/rhythms.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +29 lines, -29 lines 0 comments Download
M Documentation/es/notation/vocal.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M Documentation/fr/notation/ancient.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +7 lines, -7 lines 0 comments Download
M Documentation/fr/notation/rhythms.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +29 lines, -29 lines 0 comments Download
M Documentation/fr/notation/vocal.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M Documentation/ja/notation/rhythms.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +29 lines, -29 lines 0 comments Download
M Documentation/ja/notation/vocal.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M Documentation/notation/ancient.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +7 lines, -7 lines 0 comments Download
M Documentation/notation/rhythms.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +29 lines, -29 lines 0 comments Download
M Documentation/notation/vocal.itely View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M Documentation/snippets/heavily-customized-polymetric-time-signatures.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
A Documentation/snippets/new/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +36 lines, -0 lines 1 comment Download
M Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -9 lines 1 comment Download
M Documentation/snippets/repeats-headword.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M Documentation/snippets/setting-the-double-repeat-default-for-volte.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M Documentation/snippets/unfretted-headword.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/auto-beam-bar.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
A input/regression/bar-line-define-bar-glyph.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +28 lines, -0 lines 0 comments Download
A input/regression/bar-line-define-bar-line.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +21 lines, -0 lines 0 comments Download
M input/regression/bar-line-segno.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -5 lines 0 comments Download
M input/regression/bar-lines.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M input/regression/double-repeat.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/grace-volta-repeat-2.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M input/regression/lyrics-bar.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/music-function.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M input/regression/non-centered-bar-lines.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/number-staff-lines.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/prefatory-spacing-matter.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M input/regression/repeat-sign.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M input/regression/repeat-sign-global-size-10.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -7 lines 0 comments Download
M input/regression/repeat-sign-global-size-30.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -7 lines 0 comments Download
M input/regression/repeat-sign-global-size-5.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -7 lines 0 comments Download
M input/regression/repeat-sign-layout-size.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -7 lines 0 comments Download
M input/regression/span-bar-break.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -5 lines 0 comments Download
M input/regression/tuplet-broken.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M input/regression/tuplet-full-length.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M input/regression/zero-staff-space.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M lily/grob-scheme.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M lily/repeat-acknowledge-engraver.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M lily/volta-bracket.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -10 lines 1 comment Download
M ly/engraver-init.ly View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M ly/property-init.ly View 1 2 3 4 5 6 7 8 9 10 2 chunks +23 lines, -0 lines 0 comments Download
M python/convertrules.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +26 lines, -0 lines 1 comment Download
M scm/bar-line.scm View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +750 lines, -373 lines 0 comments Download
M scm/define-context-properties.scm View 3 chunks +3 lines, -3 lines 0 comments Download
M scm/define-grob-interfaces.scm View 1 7 1 chunk +4 lines, -35 lines 0 comments Download
M scm/define-grob-properties.scm View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -2 lines 0 comments Download
M scm/define-grobs.scm View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -10 lines 0 comments Download
M scripts/abc2ly.py View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/etf2ly.py View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 39
MikeSol
LGTM
11 years, 7 months ago (2012-08-29 18:18:51 UTC) #1
thomasmorley65
Great work so far. Some minor suggestions: http://codereview.appspot.com/6498052/diff/5001/scm/bar-line.scm File scm/bar-line.scm (right): http://codereview.appspot.com/6498052/diff/5001/scm/bar-line.scm#newcode203 scm/bar-line.scm:203: If a ...
11 years, 7 months ago (2012-08-29 23:46:05 UTC) #2
marc
Am 30.08.2012 01:46, schrieb thomasmorley65@googlemail.com: > Great work so far. > Some minor suggestions: > ...
11 years, 7 months ago (2012-08-30 13:11:38 UTC) #3
thomasmorley65
http://codereview.appspot.com/6498052/diff/10001/Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly File Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly (right): http://codereview.appspot.com/6498052/diff/10001/Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly#newcode13 Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly:13: A @code{|:} bar line can be printed at the ...
11 years, 7 months ago (2012-08-31 00:05:06 UTC) #4
marc
Am 31.08.2012 02:05, schrieb thomasmorley65@googlemail.com: > > http://codereview.appspot.com/6498052/diff/10001/Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly > > File > Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly > > ...
11 years, 7 months ago (2012-09-01 16:09:59 UTC) #5
thomasmorley65
More nit-picking: http://codereview.appspot.com/6498052/diff/7003/python/convertrules.py File python/convertrules.py (right): http://codereview.appspot.com/6498052/diff/7003/python/convertrules.py#newcode3395 python/convertrules.py:3395: @rule ((2, 17, 2), r"New bar line ...
11 years, 7 months ago (2012-09-02 20:24:47 UTC) #6
marc
Am 02.09.2012 22:24, schrieb thomasmorley65@googlemail.com: > More nit-picking: > > > http://codereview.appspot.com/6498052/diff/7003/python/convertrules.py > File python/convertrules.py ...
11 years, 7 months ago (2012-09-03 15:31:36 UTC) #7
Ian Hulin (gmail)
Apart from a typo in changes.tely (q.v.), LGTM. http://codereview.appspot.com/6498052/diff/24001/Documentation/changes.tely File Documentation/changes.tely (right): http://codereview.appspot.com/6498052/diff/24001/Documentation/changes.tely#newcode67 Documentation/changes.tely:67: as ...
11 years, 6 months ago (2012-09-27 22:21:23 UTC) #8
thomasmorley65
One tiny addition: http://codereview.appspot.com/6498052/diff/24001/scm/bar-line.scm File scm/bar-line.scm (right): http://codereview.appspot.com/6498052/diff/24001/scm/bar-line.scm#newcode1053 scm/bar-line.scm:1053: (define-bar-line ":|]" ":|]" #f " |") ...
11 years, 6 months ago (2012-09-27 22:54:54 UTC) #9
marc
Am 28.09.2012 00:21, schrieb ianhulin44@gmail.com: > Apart from a typo in changes.tely (q.v.), LGTM. > ...
11 years, 6 months ago (2012-09-28 07:59:13 UTC) #10
marc
Am 28.09.2012 00:54, schrieb thomasmorley65@googlemail.com: > One tiny addition: > > > > > http://codereview.appspot.com/6498052/diff/24001/scm/bar-line.scm ...
11 years, 6 months ago (2012-09-28 08:00:54 UTC) #11
Keith
Looks good so far. In one pdf previewer (evince) at low resolution, the span bars ...
11 years, 6 months ago (2012-09-29 05:11:46 UTC) #12
marc
Am 29.09.2012 07:11, schrieb k-ohara5a5a@oco.net: > Looks good so far. > > In one pdf ...
11 years, 6 months ago (2012-09-29 09:14:08 UTC) #13
Keith
On 2012/09/29 09:14:08, marc wrote: > Am 29.09.2012 07:11, schrieb k-ohara5a5a@oco.net: > > In one ...
11 years, 6 months ago (2012-09-30 01:59:05 UTC) #14
Keith
Now looking at the log files, I do get "undead" errors for our regression test ...
11 years, 6 months ago (2012-09-30 02:11:47 UTC) #15
dak
http://codereview.appspot.com/6498052/diff/32001/scm/bar-line.scm File scm/bar-line.scm (right): http://codereview.appspot.com/6498052/diff/32001/scm/bar-line.scm#newcode225 scm/bar-line.scm:225: (define-public bar-glyph-alist '()) This interface definition is asking for ...
11 years, 6 months ago (2012-09-30 08:01:48 UTC) #16
marc
Am 30.09.2012 04:11, schrieb k-ohara5a5a@oco.net: > Now looking at the log files, I do get ...
11 years, 6 months ago (2012-09-30 08:25:30 UTC) #17
marc
Am 30.09.2012 10:01, schrieb dak@gnu.org: > > http://codereview.appspot.com/6498052/diff/32001/scm/bar-line.scm > File scm/bar-line.scm (right): > > http://codereview.appspot.com/6498052/diff/32001/scm/bar-line.scm#newcode225 ...
11 years, 6 months ago (2012-09-30 08:33:16 UTC) #18
mike7
On 30 sept. 2012, at 10:25, Marc Hohl <marc@hohlart.de> wrote: > Am 30.09.2012 04:11, schrieb ...
11 years, 6 months ago (2012-09-30 08:35:12 UTC) #19
marc
Am 30.09.2012 10:01, schrieb dak@gnu.org: > > http://codereview.appspot.com/6498052/diff/32001/scm/bar-line.scm > File scm/bar-line.scm (right): > > http://codereview.appspot.com/6498052/diff/32001/scm/bar-line.scm#newcode225 ...
11 years, 6 months ago (2012-09-30 08:57:03 UTC) #20
dak
On 2012/09/30 08:33:16, marc wrote: > Am 30.09.2012 10:01, schrieb dak@gnu.org: > > > > ...
11 years, 6 months ago (2012-09-30 09:02:48 UTC) #21
marc
Am 30.09.2012 11:02, schrieb dak@gnu.org: > [...] > First, the define-public is asking for trouble. ...
11 years, 6 months ago (2012-09-30 19:44:49 UTC) #22
dak
On 2012/09/30 19:44:49, marc wrote: > Am 30.09.2012 11:02, schrieb dak@gnu.org: > > [...] > ...
11 years, 6 months ago (2012-09-30 20:03:16 UTC) #23
marc
Am 30.09.2012 22:03, schrieb dak@gnu.org: > On 2012/09/30 19:44:49, marc wrote: >> Am 30.09.2012 11:02, ...
11 years, 6 months ago (2012-10-01 08:46:09 UTC) #24
dak
On 2012/10/01 08:46:09, marc wrote: > Am 30.09.2012 22:03, schrieb dak@gnu.org: > > On 2012/09/30 ...
11 years, 6 months ago (2012-10-01 09:00:34 UTC) #25
marc
Am 01.10.2012 11:00, schrieb dak@gnu.org: > On 2012/10/01 08:46:09, marc wrote: >> Am 30.09.2012 22:03, ...
11 years, 6 months ago (2012-10-01 09:08:43 UTC) #26
dak
Marc Hohl <marc@hohlart.de> writes: > Am 01.10.2012 11:00, schrieb dak@gnu.org: >> >> Or define-session-public. define-session ...
11 years, 6 months ago (2012-10-01 09:16:51 UTC) #27
janek
On Sunday, September 30, 2012, Davod Kastrup wrote: > Hold your horses, this is another ...
11 years, 6 months ago (2012-10-03 15:25:35 UTC) #28
janek
Marc wrote: > (define-bar-line ...) or \defineBarLine allows for new > definitions. These functions have ...
11 years, 6 months ago (2012-10-05 16:55:27 UTC) #29
thomasmorley65
2012/10/5 <janek.lilypond@gmail.com>: > Marc wrote: >> >> (define-bar-line ...) or \defineBarLine allows for new >> ...
11 years, 6 months ago (2012-10-05 19:42:28 UTC) #30
janek
On Fri, Oct 5, 2012 at 9:42 PM, Thomas Morley <thomasmorley65@googlemail.com> wrote: > 2012/10/5 <janek.lilypond@gmail.com>: ...
11 years, 6 months ago (2012-10-06 09:23:40 UTC) #31
marc
Am 06.10.2012 11:23, schrieb Janek Warchoł: > On Fri, Oct 5, 2012 at 9:42 PM, ...
11 years, 6 months ago (2012-10-06 11:47:56 UTC) #32
marc
Am 30.09.2012 22:03, schrieb dak@gnu.org: > On 2012/09/30 19:44:49, marc wrote: >> Am 30.09.2012 11:02, ...
11 years, 6 months ago (2012-10-06 11:51:54 UTC) #33
dak
Marc Hohl <marc@hohlart.de> writes: > Am 30.09.2012 22:03, schrieb dak@gnu.org: >> On 2012/09/30 19:44:49, marc ...
11 years, 6 months ago (2012-10-06 12:05:35 UTC) #34
marc
Am 05.10.2012 21:42, schrieb Thomas Morley: > 2012/10/5 <janek.lilypond@gmail.com>: >> Marc wrote: >>> (define-bar-line ...) ...
11 years, 6 months ago (2012-10-07 19:43:22 UTC) #35
marc
Am 06.10.2012 11:23, schrieb Janek Warchoł: > On Fri, Oct 5, 2012 at 9:42 PM, ...
11 years, 6 months ago (2012-10-10 20:08:04 UTC) #36
janek
I dedicate all my code reviews to Graham Percival. Marc, your change is so big ...
11 years, 6 months ago (2012-10-14 17:17:46 UTC) #37
mail_philholmes.net
----- Original Message ----- From: <janek.lilypond@gmail.com> To: <marc@hohlart.de>; <mtsolo@gmail.com>; <thomasmorley65@googlemail.com>; <ianhulin44@gmail.com>; <k-ohara5a5a@oco.net>; <dak@gnu.org>; <mike@mikesolomon.org> Cc: ...
11 years, 6 months ago (2012-10-14 17:51:55 UTC) #38
marc
11 years, 6 months ago (2012-10-14 18:01:32 UTC) #39
Am 14.10.2012 19:17, schrieb janek.lilypond@gmail.com:
> I dedicate all my code reviews to Graham Percival.
>
> Marc,
> your change is so big that i have trouble grasping it and understanding
> everything, but i have a few specific comments.
>
> Janek
>
>
>
http://codereview.appspot.com/6498052/diff/50001/Documentation/snippets/new/p...

>
> File
>
Documentation/snippets/new/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly

>
> (right):
>
>
http://codereview.appspot.com/6498052/diff/50001/Documentation/snippets/new/p...

>
>
Documentation/snippets/new/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly:1:

>
> \version "2.17.5"
> I see this snippet both as new snippet in Documentation/snippets/new and
> as modified snippet in Documentation/snippets.  Is this correct?
The CG says so, otherwise it would be removed by the next makelsr call.
>
>
http://codereview.appspot.com/6498052/diff/50001/Documentation/snippets/print...

>
> File
> Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly 
>
> (right):
>
>
http://codereview.appspot.com/6498052/diff/50001/Documentation/snippets/print...

>
>
Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly:20:

>
>
> is this empty line intended?
You don't like it? ;-)

Sorry, will remove it before pushing to staging.
>
> http://codereview.appspot.com/6498052/diff/50001/lily/volta-bracket.cc
> File lily/volta-bracket.cc (right):
>
>
http://codereview.appspot.com/6498052/diff/50001/lily/volta-bracket.cc#newcod...

>
> lily/volta-bracket.cc:141: ly_string2scm (str)));
> I'm sorry (that's probably a noob question) - what |= is?
It's the same as a+= 2, just with a bitwise or.
>
> http://codereview.appspot.com/6498052/diff/50001/python/convertrules.py
> File python/convertrules.py (right):
>
>
http://codereview.appspot.com/6498052/diff/50001/python/convertrules.py#newco...

>
> python/convertrules.py:3394:
> is this blank line intentional?
See above.
>
> http://codereview.appspot.com/6498052/
>

Sign in to reply to this message.

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