Hello!

I am working from an edition that uses square brackets for items added
by the editors.  I was able to change the stencils property for
\parenthesize for most of these, but there are some accidentals that
have been added.  Currently, I'm using the following to produce a
reasonable approximation, but are there any simpler ways to do this?

\version "2.19.50"

%% Set of overrides to approximate a cautionary natural inside square
brackets instead of parentheses
brackNat = {
  \once\override AccidentalCautionary.stencil = #ly:text-interface::print
  \once\override AccidentalCautionary.text = \markup {
    \concat{\translate #'(0.0 . -0.7) [
            \musicglyph #"accidentals.natural"
            \translate #'(0.0 . -0.7) ]}
  }
}

\score {
  \new Staff {
    c''4 c''? \brackNat c''? c''
  }
}

Thanks for any advice you can offer!
Ben

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to