5 texidoc = "It is possible to have different staff distances across
6 piano systems, but it requires some advanced magic. Kids don't try this at home.
14 #(define ((futz-alignment-callback distance count) grob axis)
16 "Check if we're the system number COUNT, and if yes, set fixed distance to
17 DISTANCE; then call the original callback. "
19 ((a (ly:get-parent grob axis))
20 (o (ly:get-original a))
22 (ly:get-broken-into o)
29 (equal? (list-ref bs count) a)
31 (ly:set-grob-property! a 'forced-distance distance))
33 (Align_interface::fixed_distance_alignment_callback grob axis)) )
36 \notes \relative c'' \context PianoStaff
38 verticalAlignmentChildCallback = #(futz-alignment-callback 20 1)
40 %% Every cross staff beam will trigger
41 %% alignment unless autokneeing is switched off
42 \override Beam #'auto-knee-gap = #'()
50 \once \override Stem #'direction = #UP
59 \once \override Stem #'direction = #UP
64 \context Staff = down {
68 \paper { raggedright = ##T }