+\version "1.3.146"
\header {
texidoc = "overriding the molecule callback can also be used to draw a
box around arbitrary grobs.
TODO: check whether the corners are really correct.
-
- ";
+
+ TODO: circled molecules.
+
+ "
}
+
#(define (box-molecule xext yext)
(ly-make-molecule
(list 'filledbox (- (car xext)) (cdr xext)
)
- \score { \notes {
+ \score { \notes \relative c'' {
\property Voice.TextScript \override #'molecule-callback =
#(make-molecule-boxer Text_item::brew_molecule)
\property Voice.Stem \override #'molecule-callback =
#(make-molecule-boxer Stem::brew_molecule)
- c''8
+\property Score.RehearsalMark \override #'molecule-callback =
+ #(make-molecule-boxer Text_item::brew_molecule)
+
+ c8
+\property Voice.Stem \revert #'molecule-callback
+
+ c4. c4 \mark "F" c1
}}