Jump to content

Acciaccatura markup: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Here is a solution to print an acciaccatura in markup (for example, to give an execution hint for an appoggiatura, as found in baroque music).
Here is a solution to print an acciaccatura in markup (for example, to give an execution hint for an appoggiatura, as found in baroque music).


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=458
%% http://lsr.di.unimi.it/LSR/Item?id=458


Line 36: Line 36:
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Workaround]]
[[Category:Workaround]]
[[Category:Snippet]]

Latest revision as of 23:25, 21 November 2025

Here is a solution to print an acciaccatura in markup (for example, to give an execution hint for an appoggiatura, as found in baroque music).

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=458

%here starts the snippet:

%LSR This solution was originally provided by the German LilyPond Forum.

\transpose c c'' {
  \key g \major
  \time 2/4
  \tupletSpan 8
  \override Script.padding = #1

  \appoggiatura f16
    _\markup { 
      [ \note {8} #1
      \translate #(cons -1.5 2.9) { \musicglyph "flags.ugrace" } ] 
    }
  e8 d r b |

  \appoggiatura f16
    _\markup { 
      [ \fontsize #-6 \note {8} #1
      \translate #(cons -1.05 1.5) { 
        \fontsize #-6 \musicglyph "flags.ugrace" 
      }
      \normalsize ] 
    }
  e8 d r b |
}