]> git.donarmstrong.com Git - lilypond.git/commitdiff
Web: add link to Frescobaldi, add new tab example.
authorGraham Percival <graham@percival-music.ca>
Fri, 30 Oct 2009 23:47:38 +0000 (23:47 +0000)
committerGraham Percival <graham@percival-music.ca>
Fri, 30 Oct 2009 23:47:38 +0000 (23:47 +0000)
Documentation/general/examples/bach-tab-example.ly [deleted file]
Documentation/general/examples/tab-example.ly [new file with mode: 0644]
Documentation/general/introduction.itexi

diff --git a/Documentation/general/examples/bach-tab-example.ly b/Documentation/general/examples/bach-tab-example.ly
deleted file mode 100644 (file)
index e2ea18a..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-\version "2.11.62"
-\include "example-header.ily"
-
-% Example of Tab Polyphony from Bach Lute Suite in E Minor
-
-
-
-%#(define (fret-letter-tablature-format string tuning pitch)
-%(make-string 1 (integer->char
-%(+ (char->integer #\a)
-%(- (pitch-semitones pitch)
-%(list-ref tuning (- string 1)))))))
-
-global = {
-  \time 12/8
-  \key e \minor
-  \set Staff.midiInstrument = "acoustic guitar (nylon)"
-%  \set TabStaff.tablatureFormat = #fret-letter-tablature-format
-}
-
-upper = \relative c' {
-       \global
-       \voiceOne
-       r4. r8 e, fis g16 b g e e' b c b a g fis e
-}
-
-lower = \relative c {
-       \global
-       \voiceTwo
-       r16 e d c b a g4 fis8 e fis g a b c | 
-}
-
-\score {
-  <<
-    \new StaffGroup = "tab with traditional" <<
-       \new Staff = "guitar" <<
-           \clef "treble_8"
-           \context Voice = "upper" \upper
-           \context Voice = "lower" \lower
-       >>
-       \new TabStaff = "guitar" << 
-            \context TabVoice = "upper"  \upper 
-            \context TabVoice = "lower"  \lower 
-       >>
-    >>
-  >>
-  \layout {}
-  %\midi {}
-}
-
diff --git a/Documentation/general/examples/tab-example.ly b/Documentation/general/examples/tab-example.ly
new file mode 100644 (file)
index 0000000..58ade5e
--- /dev/null
@@ -0,0 +1,84 @@
+\version "2.13.6"
+
+#(set-global-staff-size 22.45)
+
+% TODO
+%{
+- you might want to add a custom #'gap = #0.5 and #'extra-offset to
+  glissandi that go to an accidental'd note.  You might want to
+  do a similar thing, because I see collisions.
+
+- the fermata seems awfully high
+- why are there so many clashing notehead warnings?
+%}
+
+%% Hide fret number: useful to draw slide into/from a casual point of
+%% the fretboard.
+hideFretNumber = { \once \override TabNoteHead #'transparent = ##t 
+                 \once \override NoteHead #'transparent = ##t 
+                 \once \override Stem #'transparent = ##t
+                 \once \override NoteHead #'no-ledgers = ##t 
+}
+
+\paper {
+  indent= #0
+  line-width= #180
+}
+
+upper=  \relative c' {
+  \time 4/4 
+  \key e \major
+  \set Staff.midiInstrument = #"acoustic guitar (steel)"
+  \set fingeringOrientations = #'(left)
+  
+  %\override Staff.Glissando #'extra-offset = #' (0.0 . 1.0)
+  \partial 4. \acciaccatura c16 \glissando cis8  e4 
+  < cis-1 g'-3 >2 s8 \grace a16 ( \glissando <b-2>8\3 )  <d-1> ( b ) |
+  <e-3>\2 ( <d-1> b ) \grace <ais-2>16 ( \glissando  a8  g ) s4. |
+  s4.  < d'\3 g\2 >8  < gis,\4  d'\3 fis\2 >2\arpeggio ~ |
+  
+  < gis\4  d'\3 fis\2 >2  < b'\2\harmonic e\harmonic >2^\markup { \musicglyph #"scripts.ufermata" } |
+  
+}
+
+lower=  \relative c {
+  \set fingeringOrientations = #'(left)
+  
+  \partial 4. s4. |
+  s4  e,4  s2 |
+  s2 s8 <e'-3>4. ~ |
+  e4  \hideFretNumber \grace { b8 \glissando s4 }  <e-2>4\5  e,2 ~ |
+  
+  e2  < e'\6\harmonic > |
+}
+
+\score {
+  \new StaffGroup <<
+    \new Staff = "guitar" <<
+      \context Voice = "upper guitar" { \clef "G_8" \voiceOne \upper }
+      \context Voice = "lower guitar" { \clef "G_8" \voiceTwo \lower }
+    >>
+    \new TabStaff = "tab" <<
+      \context TabVoice = "upper tab" { \clef "moderntab" \voiceOne \upper }
+      \context TabVoice = "lower tab" { \clef "moderntab" \voiceTwo \lower }
+    >>
+  >>
+  
+ \midi {
+    \context {
+      \Score tempoWholesPerMinute = #(ly:make-moment 120 4)
+    }
+  }
+  
+ \layout {
+    \context {
+    \Staff
+    \override StringNumber #'transparent = ##t
+    }
+    
+    \context {
+    \TabStaff
+    \revert Arpeggio #'stencil
+    }
+  }
+}
index e357739859f18a05aee55d1603ef68c530a30861..7008cd2f5a35c1b04a71524a5419485e92dbf69a 100644 (file)
@@ -276,11 +276,11 @@ full score, piano-vocal reduction, and a violin part.
 @subsubheading Tablature
 
 Lilypond supports tablature notation, which can be customized to
-suit any instrument that reads from tablature. Here is a passage
-from a Bach Lute Suite, with tablature generated automatically
-from the notes entered for the traditional staff.
+suit any instrument that reads from tablature.  The tablature
+staff is generated automatically from notes entered for the 5-line
+staff.
 
-@exampleImage{bach-tab-example}
+@exampleImage{tab-example}
 @newsEnd
 
 @newsItem
@@ -821,6 +821,8 @@ convinced?  Read about easier editing environments in
   (click to enlarge),screenshot-denemo,png,right}
 @sourceimage{logo-linux,,,}
 
+@uref{http://FIXME}
+
 Denemo is graphical editor which generates Lilypond source code
 and also allows audio playback.  It is currently in development
 and generates code for older versions of Lilypond (V2.8.7).  It
@@ -840,14 +842,14 @@ graphical view.
 @sourceimage{logo-macosx,,,}
 @sourceimage{logo-windows,,,}
 
+@uref{http://lilypondtool@/.organum@/.hu}
+
 Created as a plugin for the
 @uref{http://@/www@/.jedit@/.org@/,jEdit} text editor,
 LilyPondTool is one of the most feature-rich text-based tool for
 editing LilyPond scores.  Its features include a Document Wizard
 with lyrics support to set up documents easier, and embedded PDF
-viewer with advanced point-and-click support.  For screenshots,
-demos, and installation instructions, visit
-@uref{http://lilypondtool@/.organum@/.hu}
+viewer with advanced point-and-click support.
 
 @divEnd
 
@@ -859,6 +861,8 @@ demos, and installation instructions, visit
 @sourceimage{logo-macosx,,,}
 @sourceimage{logo-windows,,,}
 
+@uref{http://FIXME}
+
 Emacs is a text editor with language-sensitive capabilities for
 many different computer languages.  Emacs is a highly extensible
 editor and can be used as an Integrated Development Environment.
@@ -881,11 +885,14 @@ writing LilyPond input files.
 
 @subsubheading Frescobaldi
 
-@imageFloat{frescobaldi-lilypond-editor-small,png,right}
+@imageClickable{frescobaldi-lilypond-editor-small,png,
+  (click to enlarge),frescobaldi-lilypond-editor,png,right}
 
 @sourceimage{logo-linux,,,}
 @sourceimage{logo-freebsd,,,}
 
+@uref{http://www.frescobaldi.org}
+
 Frescobaldi is a dedicated LilyPond music and text editor with
 built-in PDF previewer, a powerful score wizard and many editing
 features.  It is built on top of the KDE4 libraries and runs
@@ -897,6 +904,8 @@ systems.
 
 @sourceimage{logo-macosx,,,}
 
+@uref{http://FIXME}
+
 The
 @uref{http://@/www@/.uoregon@/.edu/~koch/texshop/index@/.html,TexShop}
 editor for MacOS@tie{}X can be extended to run LilyPond,