]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/guitar-slides.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / guitar-slides.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "fretted-strings"
11
12   texidoc = "
13 Unlike glissandos, slides may go from an imprecise point of the
14 fretboard to a specific fret. A good way to do this is to add a hidden
15 grace note before the note which is actually played, as demonstrated in
16 the following example.
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 = {
25   \once \hide TabNoteHead
26   \once \hide NoteHead
27   \once \hide Stem
28   \once \override NoteHead.no-ledgers = ##t
29   \once \override Glissando.bound-details.left.padding = #0.3
30 }
31
32 music= \relative c' {
33   \grace { \hideFretNumber d8\2 \glissando s2 } g2\2
34   \grace { \hideFretNumber g8\2 \glissando s2 } d2 |
35
36   \grace { \hideFretNumber c,8 \glissando s } f4\5^\markup \tiny { Slide into }
37   \grace { \hideFretNumber f8 \glissando s } a4\4
38   \grace { \hideFretNumber e'8\3 \glissando s } b4\3^\markup \tiny { Slide from }
39   \grace { \hideFretNumber b'8 \glissando s2 } g4 |
40 }
41
42 \score {
43   <<
44     \new Staff {
45       \clef "G_8"
46       \music
47     }
48     \new TabStaff {
49       \music
50     }
51   >>
52 }