From: Carl Sorensen Date: Tue, 12 Aug 2008 03:07:44 +0000 (-0600) Subject: Update fretted-strings.itely for revised automatic fretboards X-Git-Tag: release/2.11.56-1~2^2~22 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bca401636a52411c8d48a03791281b89fb42d38c;p=lilypond.git Update fretted-strings.itely for revised automatic fretboards --- diff --git a/Documentation/user/fretted-strings.itely b/Documentation/user/fretted-strings.itely index 8b6beef4f5..60394cd626 100644 --- a/Documentation/user/fretted-strings.itely +++ b/Documentation/user/fretted-strings.itely @@ -878,7 +878,7 @@ commands: @lilypond[quote,ragged-right,verbatim] -\storePredefinedDiagram +\storePredefinedDiagram #guitar-tuning #"x;3-1-(;5-2;5-3;5-4;3-1-1);" << @@ -888,25 +888,27 @@ commands: } } \context FretBoards { - 1 + 1 \predefinedFretboardsOff - + \predefinedFretboardsOn - + } \context Staff { \clef "treble_8" - 1 - - + 1 + + } >> @end lilypond -Notes can be explicitly placed on a string. It is often enough -to place only the lowest note on an explicit string; the rest of +Sometimes the fretboard calculator will be unable to find +an accceptable diagram. This can often be remedied by +manually assigning a note to a string. In many cases, only one +note need be manually placed on a string; the rest of the notes will then be placed appropriately by the @code{FretBoards} context. @@ -914,21 +916,17 @@ context. << \context ChordNames { \chordmode { - c1 c d:m d:m + c1 c } } \context FretBoards { - < c e g c' e' > 1 - < c\5 e g c' e' > 1 - < d a d' f'> - < d\4 a d' f'> + < c g c' e' g'> 1 + < c g\4 c' e' g'> 1 } \context Staff { \clef "treble_8" - < c e g c' e' > 1 - < c e g c' e' > 1 - < d a d' f'> - < d a d' f'> + < c g c' e' g'> 1 + < c g c' e' g'> 1 } >> @end lilypond @@ -943,8 +941,8 @@ Fingerings can be added to FretBoard fret diagrams. } } \context FretBoards { - < c\5-3 e-2 g c'-1 e' > 1 - < d\4 a-2 d'-3 f'-1> + < c-3 e-2 g c'-1 e' > 1 + < d a-2 d'-3 f'-1> } \context Staff { \clef "treble_8" @@ -954,6 +952,30 @@ Fingerings can be added to FretBoard fret diagrams. >> @end lilypond +The minimum fret to be used in calculating strings and frets for +the FretBoard context can be set with the @code{minimumFret} +property. + +@lilypond[quote, verbatim] +<< + \context ChordNames { + \chordmode { + d1:m d:m + } + } + \context FretBoards { + < d a d' f'> + \set FretBoards.minimumFret = #5 + < d a d' f'> + } + \context Staff { + \clef "treble_8" + < d a d' f'> + < d a d' f'> + } +>> +@end lilypond + The strings and frets for the @code{FretBoards} context depend on the @code{stringTunings} property, which has the same meaning as in the TabStaff context. See @ref{Custom tablatures} for @@ -965,15 +987,6 @@ Details are found at @rinternals{fret-diagram-interface}. For a @code{FretBoards} fret diagram, the interface properties belong to @code{FretBoards.FretBoard}. -@snippets -The minimum fret to be used in calculating strings and frets for -the FretBoard context can be set with the @code{minimumFret} -property. - -@c TODO -- snippet showing minimum fret. - -@c TODO -- snippet for using StringTunings - @predefined \predefinedFretboardsOff, \predefinedFretboardsOn. diff --git a/scm/translation-functions.scm b/scm/translation-functions.scm index cefdf70776..79a924812a 100644 --- a/scm/translation-functions.scm +++ b/scm/translation-functions.scm @@ -339,7 +339,8 @@ free-strings))) (if fit-string (set-fret note fit-string) - (ly:warning "No string for pitch ~a (given frets ~a)" (note-pitch note) + (ly:warning "No string for pitch ~a (given frets ~a)" + (note-pitch note) specified-frets)) )))