X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fbeam-concave-chord.ly;h=2c35727a7de48e907e0fdcc2c52293046e286621;hb=97a0169312a260933246ab224e4f8b0969871dd5;hp=14e679083249979eabf39599d8b3f299794a0f7d;hpb=eeec992b7029d0982bf4ed0eb3995e9ca99c10e9;p=lilypond.git diff --git a/input/regression/beam-concave-chord.ly b/input/regression/beam-concave-chord.ly index 14e6790832..2c35727a7d 100644 --- a/input/regression/beam-concave-chord.ly +++ b/input/regression/beam-concave-chord.ly @@ -1,10 +1,14 @@ -\version "2.12.0" - +\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 } -