]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/beam-default-lengths.ly
Merge commit 'origin' into includes
[lilypond.git] / input / regression / beam-default-lengths.ly
index 8935525c4d96ae71af84374867395bf51ac599e9..42a9350464fe2e326a0da67227844460db4a62f3 100644 (file)
@@ -1,17 +1,22 @@
-\version "1.5.68"
+\layout{ ragged-right = ##t}
+
+\version "2.12.0"
 
 \header{
-    texidoc="Beamed stems have standard lengths if possible."
-    }
+  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 #'position =
+  #(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
+      ly:beam::set-stem-lengths
+    )))
 
-        f4 [f8 f] [f16 f] [f32 f] [f64 f] [f128 f] 
-    }
-    \paper{ linewidth = -1.0 }
-}          
\ No newline at end of file
+  f4  f8[ f]  f16[ f]  f32[ f]  f64[ f]  f128[ f] 
+}