X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Flayout-beam.scm;h=aa35be0d63eb2684f78562f0fcd9319025607d1c;hb=15fd17726c8142121f58df5f429513eaf51ade7e;hp=5d5d190c2d01ca769622d45f4f832c11b68569c8;hpb=1c846b2c2348b4e0ca4a3c2e8fb267047ba2d203;p=lilypond.git diff --git a/scm/layout-beam.scm b/scm/layout-beam.scm index 5d5d190c2d..aa35be0d63 100644 --- a/scm/layout-beam.scm +++ b/scm/layout-beam.scm @@ -15,7 +15,9 @@ ;;;; You should have received a copy of the GNU General Public License ;;;; along with LilyPond. If not, see . -(define ((check-beam-quant posl posr) beam posns) +(define check-beam-quant + (lambda (posl posr) + (lambda (beam posns) "Check whether BEAM has POSL and POSR quants. POSL are (POSITION . QUANT) pairs, where QUANT is -1 (hang), 0 (center), 1 (sit) or -2/ 2 (inter) @@ -38,12 +40,12 @@ (ly:warning (_ "Error in beam quanting. Expected (~S,~S) found ~S.") want-l want-r posns) (set! (ly:grob-property beam 'annotation) - (format "(~S,~S)" want-l want-r)))) - posns - )) + (format #f "(~S,~S)" want-l want-r)))) + posns)))) - -(define ((check-beam-slope-sign comparison) beam posns) +(define check-beam-slope-sign + (lambda (comparison) + (lambda (beam posns) "Check whether the slope of BEAM is correct wrt. COMPARISON." (let* ((slope-sign (- (cdr posns) (car posns))) (correct (comparison slope-sign 0))) @@ -52,9 +54,9 @@ (ly:warning (_ "Error in beam quanting. Expected ~S 0, found ~S.") (procedure-name comparison) slope-sign) (set! (ly:grob-property beam 'annotation) - (format "~S 0" (procedure-name comparison)))) + (format #f "~S 0" (procedure-name comparison)))) (set! (ly:grob-property beam 'annotation) "")) - posns)) + posns)))) (define-public (check-quant-callbacks l r)