]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/beam-default-lengths.ly
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / beam-default-lengths.ly
index 81582ebcf4b6146f126ebcd942bda521ea3c3f49..e6e3a265161e8f9f4ca67d7e4e7fed080a48fbfa 100644 (file)
@@ -1,17 +1,20 @@
-\version "1.7.16"
+\version "2.14.0"
 
-\header{
-    texidoc="Beamed stems have standard lengths if possible."
-    }
+\header {
+  texidoc = "Beamed stems have standard lengths if possible.  Quantization
+is switched off in this example."
+}
 
-\score{
-    \notes\relative c'{
-       \property Voice.Beam \set #'position-callbacks =
-        #`(,Beam::least_squares
-        ,Beam::check_concave
-        ,Beam::slope_damping)
+\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
+    )))
 
-        f4  f8-[ f]  f16-[ f]  f32-[ f]  f64-[ f]  f128-[ f] 
-    }
-    \paper{ raggedright = ##t}
-}          %% new-chords-done %%
\ No newline at end of file
+  f4  f8[ f]  f16[ f]  f32[ f]  f64[ f]  f128[ f]
+}