]> git.donarmstrong.com Git - lilypond.git/commitdiff
* Documentation/topdocs/NEWS.tely (Top): add FretBoards example.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 27 Oct 2006 15:33:56 +0000 (15:33 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 27 Oct 2006 15:33:56 +0000 (15:33 +0000)
* input/regression/fret-boards.ly: new file.

ChangeLog
Documentation/topdocs/NEWS.tely
input/regression/fret-boards.ly [new file with mode: 0644]
ly/engraver-init.ly

index 910e258a926efc279e4fdc44f25e7150a57ab7d9..9ca4ca90a42b3a36f00496900970adb2b49b1010 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-10-27  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
+       * Documentation/topdocs/NEWS.tely (Top): add FretBoards example. 
+
+       * input/regression/fret-boards.ly: new file.
+
        * po/de.po: new po courtesy translation team.
 
        * scripts/lilypond-book.py (get_option_parser): add newline to doc string.
index 23d05e5ac65d0bd3f7e457bce0c94c29e88f7905..33f35100550540614b8b2d77bee225580c12adb2 100644 (file)
@@ -66,6 +66,15 @@ which scares away people.
 
 @end ignore
 
+@item The @code{FretBoards} context will generate guitar frettings
+automatically,
+
+@lilypond[fragment,relative=0,verbatim,ragged-right]
+\new FretBoards { <d\5 fis a d fis> }
+@end lilypond
+
+This feature was sponsored by Rick Hansen. 
+
 @item Horizontal and vertical spacing are now done at the same time
 so that pages are filled more evenly.
 
diff --git a/input/regression/fret-boards.ly b/input/regression/fret-boards.ly
new file mode 100644 (file)
index 0000000..5c381b5
--- /dev/null
@@ -0,0 +1,32 @@
+
+\header {
+
+  texidoc = "Frets can be assigned automatically. The results will be
+best when one string number is indicated in advance "
+  
+}
+
+\version "2.9.27"
+
+foo = \relative c {
+  <d\5 fis a d fis>_\markup {
+    \fret-diagram-terse #"x;5;4;2;3;2;"
+  }
+}
+
+<<
+  \new FretBoards {
+    \set instrumentName = "autofrets"
+    \foo
+
+  }
+  \new Staff {
+    \clef "G_8"
+    \set stringNumberOrientations = #'(left)
+    \set fingeringOrientations = #'(right)
+    \foo
+  }
+
+>>
+
+
index b80ae738a37bce6751435c36c7aed2b8619fd1af..1f4df05b1b39e336c834ed2f11895888710d796d 100644 (file)
@@ -21,7 +21,9 @@
   \consists "Fretboard_engraver"
   \consists "Separating_line_group_engraver"
   \consists "Font_size_engraver"
+  \consists "Instrument_name_engraver"
 }
+
 \context {
   \type "Engraver_group"
   \name "Staff"