]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/guitar-slides.ly
Release: update news.
[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.17.20
8 \version "2.17.20"
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 NoteHead.no-ledgers = ##t
30   \once \override Glissando.bound-details.left.padding = #0.3
31 }
32
33 music= \relative c' {
34   \grace { \hideFretNumber d8\2 \glissando s2 } g2\2
35   \grace { \hideFretNumber g8\2 \glissando s2 } d2 |
36
37   \grace { \hideFretNumber c,8 \glissando s } f4\5^\markup \tiny { Slide into }
38   \grace { \hideFretNumber f8 \glissando s } a4\4
39   \grace { \hideFretNumber e'8\3 \glissando s } b4\3^\markup \tiny { Slide from }
40   \grace { \hideFretNumber b'8 \glissando s2 } g4 |
41 }
42
43 \score {
44   <<
45     \new Staff {
46       \clef "G_8"
47       \music
48     }
49     \new TabStaff {
50       \music
51     }
52   >>
53 }