2 texidoc = "context level weirdness. after some commands, explicit
3 \context Voice commands must be inserted; otherwise subsequent property
4 settings fail silently"
9 #(define (make-text-checker text)
10 (lambda (elt) (equal? text (ly-get-grob-property elt 'text))))
14 \context Staff=upper \notes\relative c' {
15 \property Score.timing = ##f
17 \outputproperty #(make-text-checker "foe") #'extra-offset = #'(-2 . 4)
20 \translator Staff=lower
22 % staff switch moves us
23 % implicitely to staff level: text-checker won't see "foe"
24 \outputproperty #(make-text-checker "foe") #'extra-offset = #'(-2 . 4)
27 % get back to Voice level: it works again
29 \outputproperty #(make-text-checker "foe") #'extra-offset = #'(-2 . 4)
34 % clef change moves us
35 % implicitely to staff level: text-checker won't see "foe"
36 \outputproperty #(make-text-checker "foe") #'extra-offset = #'(-2 . 4)
39 % get back to Voice level: it works again
41 \outputproperty #(make-text-checker "foe") #'extra-offset = #'(-2 . 4)
45 \context Staff=lower \notes\relative c' {