X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fhow-to-change-fret-diagram-position.ly;h=cbcd2bc9c724c931b57be795526ef4f3feb74547;hb=c31ee4f97786151cdc92d2d45e2b759eb54cd5fd;hp=1e86c71dd08c6a88d98e17d219d60a03dc77c86b;hpb=69f0ec479a6ade46d0a227755bb02562112c6743;p=lilypond.git diff --git a/Documentation/snippets/how-to-change-fret-diagram-position.ly b/Documentation/snippets/how-to-change-fret-diagram-position.ly index 1e86c71dd0..cbcd2bc9c7 100644 --- a/Documentation/snippets/how-to-change-fret-diagram-position.ly +++ b/Documentation/snippets/how-to-change-fret-diagram-position.ly @@ -1,9 +1,13 @@ -%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it +%% 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.1" +\version "2.17.6" \header { - lsrtags = "fretted-strings, tweaks-and-overrides" + lsrtags = "fretted-strings, specific-notation, tweaks-and-overrides" texidoc = " If you want to move the position of a fret diagram, for example, to @@ -19,17 +23,18 @@ invisible notes in that voice (as shown in the second example). If you need to move the fret according with a rythmic position inside the bar (in the example, the third beat of the measure) the second example is better, because the fret is aligned with the third beat -itself. +itself. " doctitle = "How to change fret diagram position" } % begin verbatim + harmonies = \chordmode { a8:13 % THE FOLLOWING IS THE COMMAND TO MOVE THE CHORD NAME - \once \override ChordNames.ChordName #'extra-offset = #'(10 . 0) + \once \override ChordNames.ChordName.extra-offset = #'(10 . 0) b8:13 s2. % THIS LINE IS THE SECOND METHOD s4 s4 b4:13 @@ -42,17 +47,14 @@ harmonies = \chordmode \context Staff {a8^\markup { \fret-diagram #"6-x;5-0;4-2;3-0;2-0;1-2;" } % THE FOLLOWING IS THE COMMAND TO MOVE THE FRET DIAGRAM - \once \override TextScript #'extra-offset = #'(10 . 0) + \once \override TextScript.extra-offset = #'(10 . 0) b4.~^\markup { \fret-diagram #"6-x;5-2;4-4;3-2;2-2;1-4;" } b4. a8\break % HERE IS THE SECOND METHOD << - { a8 b4.~ b4. a8} + { a8 b4.~ b4. a8} { s4 s4 s4^\markup { \fret-diagram #"6-x;5-2;4-4;3-2;2-2;1-4;" } } >> } >> } - - -