From: Carl Sorensen Date: Sat, 1 Nov 2008 20:05:48 +0000 (-0600) Subject: Add snippet showing predefineds for other instruments (cuatro) X-Git-Tag: release/2.11.64-1~99^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bc76181dac0349e7eeb613487f4967f3b72264f3;p=lilypond.git Add snippet showing predefineds for other instruments (cuatro) --- diff --git a/Documentation/user/fretted-strings.itely b/Documentation/user/fretted-strings.itely index 0a7e7ef27b..ebedb7cb65 100644 --- a/Documentation/user/fretted-strings.itely +++ b/Documentation/user/fretted-strings.itely @@ -939,6 +939,8 @@ predefined fret diagram, the interface properties belong to @lilypondfile[verbatim,lilyquote,texidoc,doctitle] {customizing-fretboard-fret-diagrams.ly} +@lilypondfile[verbatim,lilyquote,texidoc,doctitle] +{defining-predefined-fretboards-for-other-instruments.ly} @seealso diff --git a/input/new/defining-predefined-fretboards-for-other-instruments.ly b/input/new/defining-predefined-fretboards-for-other-instruments.ly new file mode 100644 index 0000000000..29c5fa9237 --- /dev/null +++ b/input/new/defining-predefined-fretboards-for-other-instruments.ly @@ -0,0 +1,107 @@ +\version "2.11.62" +\header { + lsrtags = "fretted-strings" + texidoc = "Predefined fret diagrams can be added for new instruments +in addition to the standards used for guitar. This file shows how +this is done by defining a new string-tuning and a few predefined +fretboards for the Venezuelan cuatro. Thanks to Jesus Guillermo +Andrade for the string-tuning and fretboard information. + +This file also shows how fingerings can be included in the chords +used as reference points for the chord lookup, and displayed in +the fret diagram and the TabStaff, but not the music. + +These fretboards are not transposable because they contain string +information. This is planned to be corrected in the future. + +" + doctitle = "Defining predefined fretboards for other instruments" +} + +% add FretBoards for the Cuatro +% Note: This section could be put into a separate file +% predefined-cuatro-fretboards.ly +% and \included into each of your compositions + +cuatroTuning = #'(11 18 14 9) + +dSix = { } +dMajor = { } +aMajSeven = {} +dMajSeven = {} +gMajor = {} + +\storePredefinedDiagram \dSix + #cuatroTuning + #"o;o;o;o;" +\storePredefinedDiagram \dMajor + #cuatroTuning + #"o;o;o;3-3;" +\storePredefinedDiagram \aMajSeven + #cuatroTuning + #"o;2-2;1-1;2-3;" +\storePredefinedDiagram \dMajSeven + #cuatroTuning + #"o;o;o;1-1;" +\storePredefinedDiagram \gMajor + #cuatroTuning + #"2-2;o;1-1;o;" + +% end of potential include file /predefined-cuatro-fretboards.ly + + +#(set-global-staff-size 16) + +primerosNames = \chordmode { + d:6 d a:maj7 d:maj7 + g +} +primeros = { + \dSix \dMajor \aMajSeven \dMajSeven + \gMajor +} + +\score { + << + \new ChordNames { + \set chordChanges = ##t + \primerosNames + } + + \new Staff { + \new Voice \with { + \remove New_fingering_engraver + } + \relative c'' { + \primeros + } + } + + + \new FretBoards { + \set stringTunings = #cuatroTuning + \override FretBoard #'fret-diagram-details + #'string-count = #'4 + \override FretBoard #'fret-diagram-details + #'finger-code = #'in-dot + \primeros + } + + \new TabStaff \relative c'' { + \set TabStaff.stringTunings = #cuatroTuning + \primeros + } + + >> + + \layout { + \context { + \Score + \override SpacingSpanner + #'base-shortest-duration = #(ly:make-moment 1 16) + } + + } + \midi { } +} +