]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/guitar-slides.ly
Rerun scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / guitar-slides.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.16.0
8 \version "2.17.6"
9
10 \header {
11   lsrtags = "fretted-strings"
12
13   texidoc = "
14 Unlike glissandos, slides may go from an imprecise point of the
15 fretboard to a specific fret. A good way to do that is to add a grace
16 hidden note before the note which is actually played, as demonstrated
17 in the following example.
18 "
19   doctitle = "Guitar slides"
20 } % begin verbatim
21
22
23 %% Hide fret number: useful to draw slide into/from a casual point of
24 %% the fretboard.
25 hideFretNumber = {
26   \once \override TabNoteHead.transparent = ##t
27   \once \override NoteHead.transparent = ##t
28   \once \override Stem.transparent = ##t
29   \once \override Flag.transparent = ##t
30   \once \override NoteHead.no-ledgers = ##t
31   \once \override Glissando.bound-details.left.padding = #0.3
32 }
33
34 music= \relative c' {
35   \grace { \hideFretNumber d8\2 \glissando s2 } g2\2
36   \grace { \hideFretNumber g8\2 \glissando s2 } d2 |
37
38   \grace { \hideFretNumber c,8 \glissando s } f4\5^\markup \tiny { Slide into }
39   \grace { \hideFretNumber f8 \glissando s } a4\4
40   \grace { \hideFretNumber e'8\3 \glissando s } b4\3^\markup \tiny { Slide from }
41   \grace { \hideFretNumber b'8 \glissando s2 } g4 |
42 }
43
44 \score {
45   <<
46     \new Staff {
47       \clef "G_8"
48       \music
49     }
50     \new TabStaff {
51       \music
52     }
53   >>
54 }