X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fshowing-the-same-articulation-above-and-below-a-note-or-chord.ly;h=ec67a11657c1a544fa30016fc2c8411984186ef9;hb=da56e53ef0ea64207ec401c22a53501197490b27;hp=82e1b686e52af5363254ebf2f2705eb9e4f33bd2;hpb=e5048547efdbbc521afb7b81aace6363cbd48510;p=lilypond.git diff --git a/Documentation/snippets/showing-the-same-articulation-above-and-below-a-note-or-chord.ly b/Documentation/snippets/showing-the-same-articulation-above-and-below-a-note-or-chord.ly index 82e1b686e5..ec67a11657 100644 --- a/Documentation/snippets/showing-the-same-articulation-above-and-below-a-note-or-chord.ly +++ b/Documentation/snippets/showing-the-same-articulation-above-and-below-a-note-or-chord.ly @@ -1,13 +1,16 @@ -%% Do not edit this file; it is automatically +%% DO NOT EDIT this file manually; it is automatically %% generated from LSR http://lsr.dsi.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% %% This file is in the public domain. -\version "2.13.4" +\version "2.17.6" \header { - lsrtags = "expressive-marks, tweaks-and-overrides" + lsrtags = "expressive-marks, tweaks-and-overrides, version-specific" texidoc = " -By default, LilyPond does not allow the same articulation (e.g. an +By default, LilyPond does not allow the same articulation (e.g., an accent, a fermata, a flageolet, etc.) to be displayed above and below a note. For example, c4_\\fermata^\\fermata will only show a fermata below. The fermata above will simply be ignored. However, one can stick @@ -19,31 +22,29 @@ flageolets in the snippet. To mimic the behaviour of scripts outside a chord, 'add-stem-support would be required. So, the solution is to write the note as a chord and add the articulations inside the <...>. The direction will always be above, but one can tweak this via a -\\tweak: @code{} +\\tweak: @code{} " doctitle = "Showing the same articulation above and below a note or chord" } % begin verbatim + % The same as \flageolet, just a little smaller smallFlageolet = -#(let ((m (make-music 'ArticulationEvent 'articulation-type "flageolet"))) - (ly:music-set-property! m 'tweaks - (acons 'font-size -2 (ly:music-property m 'tweaks))) - m) +#(let ((m (make-articulation "flageolet"))) + (set! (ly:music-property m 'tweaks) + (acons 'font-size -2 + (ly:music-property m 'tweaks))) + m) \relative c' { - s4^"wrong:" - c_\fermata^\fermata % The second fermata is ignored! - ^\smallFlageolet_\smallFlageolet + s4^"Wrong:" + c4_\fermata^\fermata % The second fermata is ignored! + 4^\smallFlageolet_\smallFlageolet - % it works only if you wrap the note inside a chord. By default, - % all articulations will be printed above, so you have to tweak - % the direction. s4^"Works if written inside a chord:" - - - - + 4 + 4 + 4 + 4 } -