]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/beam-quanting.ly
91ac74d8ab9391b51daa79f46d1309fd99c2cfe4
[lilypond.git] / input / regression / beam-quanting.ly
1 \header {
2
3 texidoc = "Beam quanting can be twiddled using grob
4 properties. The following example shows how Y and DY can be
5 unquantised and quantised to 0 and 4 respectively."
6
7 }
8
9 \version "1.5.68"
10
11 %{
12 Have some fun beam quanting
13 %}
14
15 % no y quantising
16 #(define (beam-vertical-position-quants m dy x y) '())
17
18 % rediculous dy quanting
19 #(define (beam-height-quants x y) '(0 4))
20
21 \score {
22     \notes\relative c'{
23         \property Voice.Beam \override #'height-quant-function = #beam-height-quants
24         \property Voice.Beam \override #'vertical-position-quant-function =
25         #beam-vertical-position-quants
26         c8 c c c
27         c8 e g a
28         c,8 f b e
29     }
30 }