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

Issue 5434104: More nuanced BarLine extra-spacing-height to allow tighter horizontal spacing (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by MikeSol
Modified:
12 years, 4 months ago
Reviewers:
pkx166h, Keith, dak, mike
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

More nuanced BarLine extra-spacing-height to allow tighter horizontal spacing

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
A input/regression/lyrics-pass-under-bar.ly View 1 chunk +10 lines, -0 lines 0 comments Download
M scm/output-lib.scm View 1 chunk +2 lines, -2 lines 2 comments Download

Messages

Total messages: 5
pkx166h
Passes Make - reg test diffs attached here: http://code.google.com/p/lilypond/issues/detail?id=2069#c1 James
12 years, 4 months ago (2011-12-02 15:44:41 UTC) #1
Keith
LGTM, considering the lame programming language you had to use. At first it looked like ...
12 years, 4 months ago (2011-12-05 06:00:05 UTC) #2
mike_apollinemike.com
Le Dec 5, 2011 à 7:00 AM, k-ohara5a5a@oco.net a écrit : > LGTM, > considering ...
12 years, 4 months ago (2011-12-05 06:49:53 UTC) #3
dak
http://codereview.appspot.com/5434104/diff/1/scm/output-lib.scm File scm/output-lib.scm (right): http://codereview.appspot.com/5434104/diff/1/scm/output-lib.scm#newcode408 scm/output-lib.scm:408: (define-public (pure-from-neighbor-interface::account-for-span-bar grob) On 2011/12/05 06:00:05, Keith wrote: > ...
12 years, 4 months ago (2011-12-05 07:52:44 UTC) #4
mike_apollinemike.com
12 years, 4 months ago (2011-12-05 08:07:17 UTC) #5
Le Dec 5, 2011 à 8:52 AM, dak@gnu.org a écrit :

> 
> http://codereview.appspot.com/5434104/diff/1/scm/output-lib.scm
> File scm/output-lib.scm (right):
> 
> http://codereview.appspot.com/5434104/diff/1/scm/output-lib.scm#newcode408
> scm/output-lib.scm:408: (define-public
> (pure-from-neighbor-interface::account-for-span-bar grob)
> On 2011/12/05 06:00:05, Keith wrote:
>> Golly gee!  Is this how you have to loop over a pair in this language?
> Scheme
>> must be for losers.  I'm glad I use more powerful languages like
> FORTRAN77.
> 
>> IF .NOT.has-span-bar(UP)
>>   esh(UP) = min(esh(UP), 1.01)
>> ENDIF
>> IF .NOT.( has-span-bar(DOWN).AND.allow-span-bar )
>>   esh(DOWN)= max(esh(DOWN), -1.01)
>> ENDIF
> 
> No, this is just Mike's entry for the obfuscated programming contest.

Winner for 2 straight years and running!

> This actually is just
> 
> (define-public (pure-from-neighbor-interface::account-for-span-bar grob)
>  (let* ((esh (pure-from-neighbor-interface::extra-spacing-height grob))
>         (hsb (ly:grob-property grob 'has-span-bar))
> 	 (ii (interval-intersection esh (cons -1.01 1.01)))
>    (if (pair? hsb)
> 	(cons (car (if (and (cdr hsb)
> 			    (ly:grob-property grob 'allow-span-bar))
> 		       esh ii))
> 	      (cdr (if (car hsb) esh ii)))
> 	ii))))
> 
> 


I'll test this out after I push the hairpin patch, which does some finagling
with has-span-bar.

Cheers,
MS


Sign in to reply to this message.

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