Jump to content

Redefining grace note global defaults: Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The global defaults for grace notes are stored in the following identifiers.
The global defaults for grace notes are stored in the following identifiers.


<pre>startGraceMusic
startGraceMusic
stopGraceMusic
stopGraceMusic
startAcciaccaturaMusic
startAcciaccaturaMusic
stopAcciaccaturaMusic
stopAcciaccaturaMusic
startAppoggiaturaMusic
startAppoggiaturaMusic
stopAppoggiaturaMusic</pre>
stopAppoggiaturaMusic
 
They are defined in file <code>ly/grace-init.ly</code>. By redefining them other effects may be obtained.
They are defined in file <code>ly/grace-init.ly</code>. By redefining them other effects may be obtained.


Line 28: Line 29:


[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 09:14, 8 December 2025

The global defaults for grace notes are stored in the following identifiers.

startGraceMusic
stopGraceMusic
startAcciaccaturaMusic
stopAcciaccaturaMusic
startAppoggiaturaMusic
stopAppoggiaturaMusic

They are defined in file ly/grace-init.ly. By redefining them other effects may be obtained.

\version "2.24"

startAcciaccaturaMusic = {
  <>(
  \override Flag.stroke-style = "grace"
  \slurDashed
}

stopAcciaccaturaMusic = {
  \revert Flag.stroke-style
  \slurSolid
  <>)
}

\relative c'' {
  \acciaccatura d8 c1
}