Jump to content

Modifying default values for articulation shorthand notation

From LilyPond wiki
Revision as of 14:39, 3 December 2025 by Lemzwerg (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The shorthands are defined in ly/script-init.ly, where the variables dashHat, dashPlus, dashDash, dashBang, dashLarger, dashDot, and dashUnderscore are assigned default values. The default values for the shorthands can be modified. For example, to associate the -+ (dashPlus) shorthand with the trill symbol instead of the default “+” symbol, assign the value \trill to the variable dashPlus:

\version "2.24"

\relative c'' { c1-+ }

dashPlus = \trill

\relative c'' { c1-+ }