Craig Dabelstein wrote:
Is there a way to put an articulation (a staccatissimo symbol) in square
brackets above a note, such as [ ! ], where ! = a staccatissimo
articulation?
Here is a quick hack, based on the brackets stencil of LSR564.
Warning: it sort of works with staccatissimo but that is because the
heights match. Something like staccato provokes collisions.
Cheers,
Robin
\version "2.18.2"
#(define (bracket-stencils grob)
(let ((lp (grob-interpret-markup grob (markup #:translate (cons -0.3 -0.35) "[")))
(rp (grob-interpret-markup grob (markup #:translate (cons -0 -0.35) "]"))))
(list lp rp)))
{
c'2-\parenthesize-!
\once \override ParenthesesItem.stencils = #bracket-stencils
c'2-\parenthesize-!
c''2-\parenthesize-!
\once \override ParenthesesItem.stencils = #bracket-stencils
c''2-\parenthesize-!
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user