On 12/21/2010 12:09 PM, Carl Sorensen wrote:
On 12/21/10 9:44 AM, "Marc Mouries"<m...@mouries.net> wrote:
I just tested the example "Defining predefined fretboards for other
instruments" with 2.13 and it produces a bizarre output.
http://lilypond.org/doc/v2.12/input/lsr/lilypond-snippets/Fretted-strings
This is a 2.12 snippet, and will not compile properly on 2.13 due to the
syntax changes.
Please use the 2.13 equivalent snippet:
http://lilypond.org/doc/v2.13/Documentation/snippets/fretted-strings
HTH,
Carl
thanks for the link. I adapted the snippet for Violin and it seems the
TAB staff is not in sync with the Fret board.
The tab shows a finger on the 5th fret while the fretboard setting is an
empty string #"x;o;o;2-1;"
\version "2.13.43"
% 0 1 2 3 4 5 6 7 8 9 10 11 12
% C D E F G A B C
violinTuning = #'(7 2 9 4)
dMajorOne = { < d\3 a'\2 fis'\1 > }
dMajorTwo = { < d\4 fis\3 d'\2 > }
gMajor = { < g,\4 d'\3 b'\2 g'\1 > }
\storePredefinedDiagram #default-fret-table \dMajorOne
#violinTuning
#"x;o;o;2-1;"
\storePredefinedDiagram #default-fret-table \dMajorTwo
#violinTuning
#"7-4;4-2;5-3;x;"
\storePredefinedDiagram #default-fret-table \gMajor
#violinTuning
#"o;o;2-1;3-2;"
#(set-global-staff-size 16)
primerosNames = \chordmode {
d
d
g
}
primeros = {
\dMajorOne \dMajorTwo
\gMajor
}
\score {
<<
\new ChordNames {
\set chordChanges = ##t
\primerosNames
}
\new FretBoards {
\set stringTunings = #violinTuning
\override FretBoard #'(fret-diagram-details string-count) = #'4
\override FretBoard #'(fret-diagram-details finger-code) = #'in-dot
\primeros
}
\new Staff {
\new Voice \with {
\remove "New_fingering_engraver"
}
\relative c' {
\primeros
}
}
\new TabStaff \relative c'' {
\set TabStaff.stringTunings = #violinTuning
\primeros
}
>>
\layout {
\context {
\Score
\override SpacingSpanner
#'base-shortest-duration = #(ly:make-moment 1 16)
}
}
\midi { }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user