]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add 'none to barre-type and update documentation
authorCarl Sorensen <c_sorensen@byu.edu>
Sun, 10 Aug 2008 00:41:52 +0000 (18:41 -0600)
committerCarl Sorensen <c_sorensen@byu.edu>
Sun, 10 Aug 2008 00:41:52 +0000 (18:41 -0600)
Documentation/user/fretted-strings.itely
scm/define-grob-properties.scm
scm/fret-diagrams.scm

index 335f4e4727ca4cb1d079fc94775c1383ae5f4de2..3c2d64d28bf26b64d502c69a50164dede5cf117d 100644 (file)
@@ -637,7 +637,7 @@ are stored in a lookup table:
 The default predefined fret diagrams are contained in the file
 @code{predefined-guitar-fretboards.ly}.  Fret diagrams are 
 stored based on the pitches of a chord and the value of
-@code{StringTunings} that is currently in use.  
+@code{stringTunings} that is currently in use.  
 @code{predefined-guitar-fretboards.ly} contains predefined 
 fret diagrams only for @code{guitar-tuning}.  Predefined fret
 diagrams can be added for other instruments or other tunings
@@ -812,7 +812,8 @@ mychords = \chordmode{
 The graphical layout of a fret diagram can be customized according to
 user preference through the properties of the @code{fret-diagram-interface}.
 Details are found at @rinternals{fret-diagram-interface}.  For a 
-predefined fret diagram, the interface properties belong to @code{FretBoards}.
+predefined fret diagram, the interface properties belong to 
+@code{FretBoards.FretBoard}.
 
 @c @snippets
 
@@ -955,7 +956,7 @@ The graphical layout of a fret diagram can be customized according to
 user preference through the properties of the @code{fret-diagram-interface}.
 Details are found at @rinternals{fret-diagram-interface}.  For a 
 @code{FretBoards} fret diagram, the interface properties belong to 
-@code{FretBoards}.
+@code{FretBoards.FretBoard}.
 
 @snippets
 The minimum fret to be used in calculating strings and frets for
index 8d2de51b141e04e0e4d7d795972ba07a38779641..ccffd3b49708aa75ccbc525a9982fd1c8e707e3b 100644 (file)
@@ -169,7 +169,7 @@ be used: @code{#UP}=@code{1}, @code{#DOWN}=@code{-1},
 @code{#LEFT}=@code{-1}, @code{#RIGHT}=@code{1}, @code{#CENTER}=@code{0}.")
      (dot-count ,integer? "The number of dots.")
      (dot-placement-list ,list? "List 
-consisting of @code{@var{description} (@var{string-number} 
+consisting of @code{(@var{description} @var{string-number} 
 @var{fret-number} @var{finger-number})} 
 entries used to define fret diagrams.")
      (duration-log ,integer? "The 2-log of the note head duration,
@@ -245,21 +245,24 @@ include the following:
 @itemize @bullet
 @item
 @code{barre-type} -- Type of barre indication used.
-Choices include @code{curved} and @code{straight}.
+Choices include @code{curved}, @code{straight}, and
+@code{none}.  Default @code{curved}.
 @item
 @code{dot-color} -- Color of dots.  Options include
-@code{black} and @code{white}.
+@code{black} and @code{white}.  Default @code{black}.
 @item
 @code{dot-label-font-mag} -- Magnification for font used to
 label fret dots.  Default value 1.
 @item
-@code{dot-radius} -- Radius of dots.
+@code{dot-radius} -- Radius of dots, in terms of fret spaces.  
+Default value 0.425 for labeled dots, 0.25 for unlabeled dots.
 @item
 @code{finger-code} -- Code for the type of fingering indication used.
 Options include @code{none}, @code{in-dot}, and
-@code{below-string}.
+@code{below-string}.  Default @code{none} for markup fret diagrams, 
+@code{below-string} for @code{FretBoards} fret diagrams.
 @item
-@code{fret-count} -- The number of frets.
+@code{fret-count} -- The number of frets.  Default 4.
 @item
 @code{fret-label-font-mag} -- The magnification of the font used to label
 the lowest fret number.  Default 0.5
@@ -270,21 +273,25 @@ from the fret.  Default -0.2
 @code{label-dir} -- Side to which the fret label is attached.
 @code{-1}, @code{#LEFT}, or @code{#DOWN} for left or down;
 @code{1}, @code{#RIGHT}, or @code{#UP} for right or up.
+Default @code{#RIGHT}.
 @item
-@code{mute-string} -- Character string to be used to indicate muted string.
+@code{mute-string} -- Character string to be used to indicate muted 
+string.  Default @qq{x}.
 @item
 @code{number-type} -- Type of numbers to use in fret label.  Choices
-include @code{roman-lower}, @code{roman-upper}, and @code{arabic}.
+include @code{roman-lower}, @code{roman-upper}, and @code{arabic}.  Default
+@code{roman-lower}.
 @item
-@code{open-string} -- Character string to be used to indicate open string.
+@code{open-string} -- Character string to be used to indicate open 
+string.  Default @qq{o}.
 @item
 @code{orientation} -- Orientation of fret-diagram.  Options include
-@code{normal} and @code{landscape}
+@code{normal} and @code{landscape}.  Default @code{normal}.
 @item
-@code{string-count} -- The number of strings.
+@code{string-count} -- The number of strings.  Default 6.
 @item
-@code{string-label-font-mag} -- The magnification of the font used to label fingerings
-at the string, rather than in the dot.  Default value 0.6.
+@code{string-label-font-mag} -- The magnification of the font used to label 
+fingerings at the string, rather than in the dot.  Default value 0.6.
 @item
 @code{top-fret-thickness} -- The thickness of the top fret line, as a multiple
 of the standard thickness.   Default value 3.
@@ -292,8 +299,8 @@ of the standard thickness.   Default value 3.
 @code{xo-font-magnification} -- Magnification used for mute and
 open string indicators.  Default value 0.5.
 @item
-@code{xo-padding} -- Padding for open and mute indicators from top fret.  Default
-value 0.25.
+@code{xo-padding} -- Padding for open and mute indicators from top fret.  
+Default value 0.25.
 @end itemize")      ;"
 
 
index 84d94538287096cb9ec56af1a434249e8b3a0a2b..fb986f91b990f3589d48d05f883017aa2a559220 100644 (file)
@@ -548,11 +548,14 @@ indications per string.
          (xo-list (cdr (assoc 'xo-list parameters)))
          (fret-range (cdr (assoc 'fret-range parameters)))
          (barre-list (cdr (assoc 'barre-list parameters)))
+         (barre-type
+          (assoc-get 'barre-type details 'curved))
          (fret-diagram-stencil
          (ly:stencil-add
           (draw-strings string-count fret-range th size orientation)
           (draw-frets fret-range string-count th size orientation))))
-    (if (not (null? barre-list))
+    (if (and (not (null? barre-list))
+             (not (eq? 'none barre-type)))
        (set! fret-diagram-stencil
              (ly:stencil-add
               (draw-barre layout props string-count fret-range size