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