]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/guitar-slides.ly
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / Documentation / snippets / guitar-slides.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.4"
5
6 \header {
7   lsrtags = "fretted-strings"
8
9   texidoc = "
10 Unlike glissandos, slides may go from an imprecise point of the
11 fretboard to a specific fret. A good way to do that is to add a grace
12 hidden note before the note which is actually played, as demonstrated
13 in the following example.
14
15
16
17
18 "
19   doctitle = "Guitar slides"
20 } % begin verbatim
21
22 %% Hide fret number: useful to draw slide into/from a casual point of
23 %% the fretboard.
24 hideFretNumber = { \once \override TabNoteHead #'transparent = ##t
25                  \once \override NoteHead #'transparent = ##t
26                  \once \override Stem #'transparent = ##t
27 }
28
29 music= \relative c' {
30       \grace { \hideFretNumber d8\2 \glissando s2 } g2\2
31       \grace { \hideFretNumber g8\2 \glissando s2 } d2 |
32
33       \grace { \hideFretNumber c,8 \glissando s } f4\5^\markup \tiny "Slide into"
34       \grace { \hideFretNumber f8 \glissando s } a4\4
35       \grace { \hideFretNumber e'8\3 \glissando s } b4\3^\markup \tiny "Slide from"
36       \grace { \hideFretNumber b'8 \glissando s2 } g4 |
37     }
38
39 \score {
40   <<
41     \new Staff {
42       \music
43     }
44     \new TabStaff {
45       \music
46     }
47   >>
48 }