From 1ab2c1478eec505bc49792a7fd3e32402ea20afd Mon Sep 17 00:00:00 2001 From: Neil Puttock Date: Wed, 24 Jun 2009 16:44:22 +0100 Subject: [PATCH] Fix regtest broken by autobeaming change. --- input/regression/beam-concave-chord.ly | 42 ++++++++++++++------------ 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/input/regression/beam-concave-chord.ly b/input/regression/beam-concave-chord.ly index 14e6790832..653165d87d 100644 --- a/input/regression/beam-concave-chord.ly +++ b/input/regression/beam-concave-chord.ly @@ -1,7 +1,6 @@ \version "2.12.0" - -morgenliedBeam = \relative c'' \new Voice{ +morgenliedBeam = \relative c'' \new Voice { \time 3/8 % morgenlied c16 b c e g | @@ -9,11 +8,12 @@ morgenliedBeam = \relative c'' \new Voice{ c16 b c e g | } -rachmaninovBeams = \relative \new Voice { +rachmaninovBeams = \relative c' \new Voice { \voiceOne \time 4/4 \key c \minor - 8 ~ + 8[ ] ~ + 8[ ] } horizontalBeams = { @@ -26,30 +26,32 @@ nonHorizontalBeams = { } \layout { ragged-right = ##t - } +} % cut & paste from beam-concave.ly #(define (<> x y) (not (= x y))) -mustBeHorizontal = - \override Staff.Beam #'positions = #(ly:make-simple-closure - (ly:make-simple-closure - (append - (list chain-grob-member-functions `(,cons 0 0)) - (check-slope-callbacks =)))) -mustNotBeHorizontal = - \override Staff.Beam #'positions = #(ly:make-simple-closure - (ly:make-simple-closure - (append - (list chain-grob-member-functions `(,cons 0 0)) - (check-slope-callbacks <>)))) - +mustBeHorizontal = { + \override Staff.Beam #'positions = + #(ly:make-simple-closure + (ly:make-simple-closure + (append + (list chain-grob-member-functions `(,cons 0 0)) + (check-slope-callbacks =)))) +} +mustNotBeHorizontal = { + \override Staff.Beam #'positions = + #(ly:make-simple-closure + (ly:make-simple-closure + (append + (list chain-grob-member-functions `(,cons 0 0)) + (check-slope-callbacks <>)))) +} \new Voice { \mustBeHorizontal - r1 + R1 \horizontalBeams \mustNotBeHorizontal \nonHorizontalBeams } - -- 2.39.5