]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/fretboards-alternate-tables.ly
LSR: add forgotten file.
[lilypond.git] / Documentation / snippets / fretboards-alternate-tables.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.36
5 \version "2.13.36"
6
7 \header {
8   lsrtags = "fretted-strings"
9
10   texidoc = "
11 Alternate fretboard tables can be created.  These would be used in
12 order to have alternate fretboards for a given chord.
13
14 In order to use an alternate fretboard table, the table must first
15 be created.  Fretboards are then added to the table.
16
17 The table to be used in displaying predefined fretboards is selected
18 by the property @code{\\predefinedDiagramTable}.
19 "
20
21   doctitle = "Alternate fretboard tables"
22 } % begin verbatim
23
24
25 \include "predefined-guitar-fretboards.ly"
26
27 #(define custom-fretboard-table-one (make-hash-table 101))
28
29 #(define custom-fretboard-table-two (make-hash-table 101))
30
31 \storePredefinedDiagram #custom-fretboard-table-one
32                         \chordmode{c}
33                         #guitar-tuning
34                         "3-(;3;5;5;5;3-);"
35
36 \storePredefinedDiagram #custom-fretboard-table-two
37                         \chordmode{c}
38                         #guitar-tuning
39                         "x;3;5;5;5;o;"
40
41 <<
42   \chords {
43     c1 |
44     c1 |
45     c1
46   }
47   \new FretBoards {
48     \chordmode {
49       \set predefinedDiagramTable = #default-fret-table
50       c1
51       \set predefinedDiagramTable = #custom-fretboard-table-one
52       c1
53       \set predefinedDiagramTable = #custom-fretboard-table-two
54       c1
55     }
56   }
57   \new Staff {
58     \clef "treble_8"
59     \chordmode {
60       c1 |
61       c1 |
62       c1
63     }
64   }
65 >>
66