Sure, it looks like this.[EMAIL PROTECTED] writes:Just to let you know, I used boxed-molecule.ly example and changed Stem to NoteHead and Stem::Print to Note_head::Print function. The rectangle was drawn around the note head then.Maybe someone could change or at least mention note head boxed-molecule in documentation (tips and tricks) as well (anyway, the rectangle around note head is used a bit more frequently than around the stem, don't you think).can you show an example? The stems are offset over here.
- Matevz
% Generated by lilypond-book
% Options: [printfilename,texidoc,linewidth]
\paper {
linewidth = 160 \mm
}
\renameinput "boxed-molecule.ly"
\version "2.1.34"
\header {
texidoc = "@cindex Boxed Stencil
The @code{print-function} can be overridden to draw a box around an arbitrary
grob. " }
\score { \notes {
\override NoteHead #'print-function = #(make-stencil-boxer 0.05 0.25 0.25
Note_head::print)
c'1
c'2
c'4
c'8
\revert NoteHead #'print-function
}
\paper{raggedright = ##t}
}
<<inline: lily-1470769966.preview.png>>
_______________________________________________ Lilypond-devel mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-devel
