3 texidoc= "Positions of accidentals may be manually set. This
4 involves some scheme code."
7 #(define (make-acc-position-checker pos)
10 (not (eq? #f (memq 'accidental-interface
11 (ly-get-grob-property elt 'interfaces))))
12 (eq? (ly-get-grob-property
13 (ly-get-parent elt 1) 'staff-position) pos))))
16 \context Voice \notes \relative c'' {
19 \property Staff.AccidentalPlacement = \turnOff
20 \context Staff \outputproperty #(make-acc-position-checker 9)
21 #'extra-offset = #'(-1 . 0)
22 \context Staff \outputproperty #(make-acc-position-checker 5)
23 #'extra-offset = #'(-2 . 0)
24 \context Staff \outputproperty #(make-acc-position-checker 3)
25 #'extra-offset = #'(-3 . 0)
26 \context Staff \outputproperty #(make-acc-position-checker 2)
27 #'extra-offset = #'(-4 . 0)