X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fbeam-concave-chord.ly;h=2c35727a7de48e907e0fdcc2c52293046e286621;hb=b872748c6aa8bb721ced458691b38ac2fac5dfc8;hp=819dce8948c440f0a21130206a199685515ef73e;hpb=60449ea328561f484249b960f4201ac4e51badc7;p=lilypond.git diff --git a/input/regression/beam-concave-chord.ly b/input/regression/beam-concave-chord.ly index 819dce8948..2c35727a7d 100644 --- a/input/regression/beam-concave-chord.ly +++ b/input/regression/beam-concave-chord.ly @@ -1,10 +1,14 @@ -\version "2.11.40" - +\version "2.19.21" +\header { +texidoc = "Concave beaming works for chords as well as monophonic +music. +" +} -morgenliedBeam = \relative c'' \new Voice{ +morgenliedBeam = \relative \new Voice { \time 3/8 % morgenlied - c16 b c e g | + c''16 b c e g | \stemUp c16 b c e g | } @@ -13,7 +17,8 @@ rachmaninovBeams = \relative \new Voice { \voiceOne \time 4/4 \key c \minor - 8 ~ + 8[ ] ~ + 8[ ] } horizontalBeams = { @@ -26,30 +31,22 @@ 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 <>)))) - +#(define (<> x y) (not (= x y))) +mustBeHorizontal = { + \override Staff.Beam.positions = #(check-slope-callbacks =) +} +mustNotBeHorizontal = { + \override Staff.Beam.positions = #(check-slope-callbacks <>) +} \new Voice { \mustBeHorizontal - r1 + R1 \horizontalBeams \mustNotBeHorizontal \nonHorizontalBeams } -