Ich denke, nicht das Quadrat sondern dessen Positionierung ist das Hauptproblem.
LSR 374 macht's vor.
spaltklang =
\once \override Stem #'stencil = #(lambda (grob)
(ly:stencil-combine-at-edge
(ly:stem::print grob) Y (- (ly:grob-property grob 'direction))
(grob-interpret-markup grob
(markup #:postscript "gsave currentpoint translate
0.15 setlinewidth newpath 0.65 0.65 scale
0 1 moveto 1 0 lineto 0 -1 lineto -1 0 lineto
closepath stroke grestore" ))
-1.6 0))
Einzustellen: Dicke (0.15), Grösse (0.65 0.65), Kopf-Abstand (1.6)
Gruss