]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/beam-default-lengths.ly
Merge commit 'origin/dev/jneeman' into systems-per-page
[lilypond.git] / input / regression / beam-default-lengths.ly
index 09c0ddf60a18e072103cb2547ba26fc8dc5d6623..9ec0c2bb1b90c16e09fd58bd660c538e9d0e4fd6 100644 (file)
@@ -1,18 +1,20 @@
+\version "2.12.0"
 
-\version "2.6.0"
+\header {
+  texidoc = "Beamed stems have standard lengths if possible.  Quantization
+is switched off in this example."
+}
 
-\header{
-    texidoc="Beamed stems have standard lengths if possible. Quantization is switched off in this example."
-    }
+\relative c' {
+  \override Beam #'positions =
+  #(ly:make-simple-closure
+    (ly:make-simple-closure
+     (list chain-grob-member-functions
+      `(,cons 0 0)
+      ly:beam::calc-least-squares-positions
+      ly:beam::slope-damping
+      ly:beam::shift-region-to-valid
+    )))
 
-\score{
-    \relative c'{
-       \override Beam  #'position-callbacks =
-        #`(,Beam::least_squares
-        ,Beam::check_concave
-        ,Beam::slope_damping)
-
-        f4  f8[ f]  f16[ f]  f32[ f]  f64[ f]  f128[ f] 
-    }
-    \layout{ raggedright = ##t}
-}          
+  f4  f8[ f]  f16[ f]  f32[ f]  f64[ f]  f128[ f]
+}