3 texidoc = "This file tests a few standard beam quants."
9 % todo: make the check-quant function throw an error for incorrect quants
12 \paper { raggedright = ##t }
16 % #(ly:set-option 'debug-beam #t)
19 #(def-music-function (location l r) (pair? pair?)
20 (let* ((f (check-quant-callbacks l r)))
23 \override Beam #'position-callbacks = $f
30 \assertquant #'(1 . 0) #'(1 . 0)
34 \assertquant #'(2 . -1) #'(2 . -1)
38 \assertquant #'(2 . 0) #'(2 . 0)
42 \assertquant #'(2 . 1) #'(2 . 1)
45 \once \override Beam #'inspect-quants = #'(2.2 . 2.2)
50 \assertquant #'(0 . 1) #'(1 . 0)
54 \assertquant #'(1 . 0) #'(1 . 1)
58 \assertquant #'(2 . -1) #'(2 . 0)
62 \assertquant #'(2 . 0) #'(2 . 1)