X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fbeam-concave-chord.ly;h=f02962d9013f3bd9f6643e6c850d766f57a61be3;hb=26a079ca2393d053315ef8dbef626c897dc9645a;hp=3dfb402feeb86993180cde41b3b12d0f24062b70;hpb=6d910958ea621e4ab878a118bd77e61ae210a6ef;p=lilypond.git diff --git a/input/regression/beam-concave-chord.ly b/input/regression/beam-concave-chord.ly index 3dfb402fee..f02962d901 100644 --- a/input/regression/beam-concave-chord.ly +++ b/input/regression/beam-concave-chord.ly @@ -1,7 +1,11 @@ -\version "2.11.51" - +\version "2.16.0" +\header { +texidoc = "Concave beaming works for chords as well as monophonic +music. +" +} -morgenliedBeam = \relative c'' \new Voice{ +morgenliedBeam = \relative c'' \new Voice { \time 3/8 % morgenlied c16 b c e g | @@ -9,11 +13,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 +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 } -