]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/user/cheatsheet.itely
* tex/GNUmakefile (TEX_FILES): add texinfo.cnf
[lilypond.git] / Documentation / user / cheatsheet.itely
index 63ed9dea03e6de123e56a00e04d4463305835d76..567ba045543aec5c34cfea03d6bc16475cca4c5d 100644 (file)
@@ -1,4 +1,6 @@
-@c -*-texinfo-*-
+@c -*- coding: latin-1; mode: texinfo; -*-
+
+@c TODO: add tablature.
 
 @node Cheat sheet
 @appendix Cheat sheet
 @item @code{1 2 8 16}
 @tab durations 
 @tab
-@lilypond[relative=1,notime]
-\set Staff.autoBeaming =  ##f
-\set Staff.Clef =  \turnOff
+@lilypond[fragment,relative=2,notime]
+\set Staff.autoBeaming = ##f
+\override Staff.Clef #'break-visibility = #all-invisible
 c1 c2 c8 c16
 @end lilypond
 
 @item @code{c4. c4..}
 @tab augmentation dots
 @tab
-@lilypond[relative=1,notime]
-\set Staff.Clef =  \turnOff
+@lilypond[fragment,relative=2,notime]
+\override Staff.Clef #'break-visibility = #all-invisible
 c4. c4..  
 @end lilypond
 
 @item @code{c d e f g a b }
 @tab scale 
 @tab
-@lilypond[relative=1,notime]
+@lilypond[fragment,relative=1,notime]
 c d e f g a b
 @end lilypond
 
 @item @code{fis bes}
 @tab alteration 
 @tab
-@lilypond[relative,notime]
+@lilypond[fragment,relative=1,notime]
 fis bes
 @end lilypond
 
 @item @code{\clef treble \clef bass }
 @tab clefs
 @tab
-@lilypond[notime]
+@lilypond[fragment,notime]
 \clef treble
 s4_" "
 \clef bass
@@ -54,7 +56,7 @@ s4_" "
 @item @code{\time 3/4 \time 4/4 }
 @tab time signature
 @tab
-@lilypond
+@lilypond[fragment]
 \override Staff.Clef   #'transparent = ##t 
 \time 3/4
 s4_" "
@@ -66,24 +68,24 @@ s16_" "
 @item @code{r4 r8}
 @tab rest 
 @tab
-@lilypond[relative=1,notime]
-\set Staff.Clef =  \turnOff
+@lilypond[relative=2,notime,fragment]
+\override Staff.Clef #'break-visibility = #all-invisible
 r4 r8
 @end lilypond
 
 @item @code{d ~ d}
 @tab tie
 @tab
-@lilypond[relative=1,notime]
-\set Score.timing =  ##f
-\set Staff.autoBeaming =  ##f
+@lilypond[relative=2,notime,fragment]
+\set Score.timing = ##f
+\set Staff.autoBeaming = ##f
 d ~ d
 @end lilypond
 
 @item @code{\key es \major }
 @tab key signature
 @tab
-@lilypond[notime]
+@lilypond[notime,fragment]
 \clef treble
 \key es \major
 s4 
@@ -92,18 +94,18 @@ s4
 @item @var{note}@code{'}
 @tab raise octave
 @tab
-@lilypond[relative=1,notime]
-\set Score.timing =  ##f
-\set Staff.autoBeaming =  ##f
+@lilypond[relative=2,notime,fragment]
+\set Score.timing = ##f
+\set Staff.autoBeaming = ##f
 a a'
 @end lilypond
 
 @item @var{note}@code{,}
 @tab lower octave
 @tab
-@lilypond[relative=1,notime]
-\set Score.timing =  ##f
-\set Staff.autoBeaming =  ##f
+@lilypond[relative=2,notime,fragment]
+\set Score.timing = ##f
+\set Staff.autoBeaming = ##f
 c c,
 @end lilypond
 
@@ -111,10 +113,10 @@ c c,
 @item @code{c( d e)}
 @tab slur
 @tab
-@lilypond[fragment,relative=1]
-\set Score.timing =  ##f
-\set Staff.TimeSignature =  \turnOff
-\set Staff.autoBeaming =  ##f
+@lilypond[fragment,relative=2]
+\set Score.timing = ##f
+\override Staff.TimeSignature #'break-visibility = #all-invisible
+\set Staff.autoBeaming = ##f
 c( d e)
 @end lilypond
 
@@ -122,10 +124,10 @@ c( d e)
 @item @code{c\( c( d) e\)}
 @tab phrasing slur
 @tab
-@lilypond[fragment,relative=1]
-\set Score.timing =  ##f
-\set Staff.TimeSignature =  \turnOff
-\set Staff.autoBeaming =  ##f
+@lilypond[fragment,relative=2]
+\set Score.timing = ##f
+\override Staff.TimeSignature #'break-visibility = #all-invisible
+\set Staff.autoBeaming = ##f
 c\(  c( d) e\)
 @end lilypond
 
@@ -133,10 +135,10 @@ c\(  c( d) e\)
 @item @code{a8[ b]}
 @tab beam
 @tab
-@lilypond[fragment,relative=1]
-\set Score.timing =  ##f
-\set Staff.TimeSignature =  \turnOff
-\set Staff.autoBeaming =  ##f
+@lilypond[fragment,relative=2]
+\set Score.timing = ##f
+\override Staff.TimeSignature #'break-visibility = #all-invisible
+\set Staff.autoBeaming = ##f
 a8-[ b-]
 @end lilypond
 
@@ -153,8 +155,8 @@ a8-[ b-]
 @item @code{c-> c-.}
 @tab articulations
 @tab
-@lilypond[fragment,relative=1]
-\set Staff.TimeSignature =  \turnOff
+@lilypond[fragment,relative=2]
+\override Staff.TimeSignature #'break-visibility = #all-invisible
 c-> c-.
 @end lilypond
 
@@ -162,29 +164,29 @@ c-> c-.
 @item @code{c\mf c\sfz}
 @tab dynamics
 @tab
-@lilypond[fragment,relative=1]
-\set Staff.TimeSignature =  \turnOff
+@lilypond[fragment,relative=2]
+\override Staff.TimeSignature #'break-visibility = #all-invisible
 c\mf c\sfz
 @end lilypond
 
 
-@item @code{a\< b\!}
+@item @code{a\< a \!a}
 @tab crescendo
 @tab
-@lilypond[fragment,relative=1]
-\set Score.timing =  ##f
-\set Staff.TimeSignature =  \turnOff
-\set Staff.autoBeaming =  ##f
+@lilypond[fragment,relative=2]
+\set Score.timing = ##f
+\override Staff.TimeSignature #'break-visibility = #all-invisible
+\set Staff.autoBeaming = ##f
 a\< a \!a
 @end lilypond
 
-@item @code{a\> b\!}
+@item @code{a\> a a\!}
 @tab decrescendo
 @tab
-@lilypond[fragment,relative=1]
-\set Score.timing =  ##f
-\set Staff.TimeSignature =  \turnOff
-\set Staff.autoBeaming =  ##f
+@lilypond[fragment,relative=2]
+\set Score.timing = ##f
+\override Staff.TimeSignature #'break-visibility = #all-invisible
+\set Staff.autoBeaming = ##f
 a\> a a\!
 @end lilypond
 
@@ -192,7 +194,7 @@ a\> a a\!
 @item @code{< >}
 @tab chord
 @tab
-@lilypond[fragment,relative=1]
+@lilypond[fragment,relative=2]
 <c e> 
 @end lilypond
 
@@ -200,56 +202,63 @@ a\> a a\!
 @item @code{\partial 8}
 @tab upstep
 @tab
-@lilypond[fragment,relative=1]
-  \partial 8
-  f8 c2 d e
-@end lilypond 
+@lilypond[fragment,relative=2]
+\partial 8
+f8 c2 d e
+@end lilypond
 
 
 @item @code{\times 2/3 @{f g a@}}
 @tab triplets
 @tab
 @lilypond[relative=1,fragment]
-  \times 2/3 { f8 g a }
+\times 2/3 { f8 g a }
 @end lilypond
 
 
 @item @code{\grace}
 @tab grace notes
 @tab
-@lilypond[relative=1,fragment]
-\context Voice {  \grace b16 c4 }
+@lilypond[relative=2,fragment]
+\context Voice { \grace b16 c4 }
 @end lilypond
 
-@item @code{\lyrics @{ @dots{} @}}
+@item @code{\lyricmode @{ twinkle @}}
 @tab entering lyrics
 @tab
 
-@item @code{\context Lyrics}
+
+@item @code{\new Lyrics}
 @tab printing lyrics
 @tab
+twinkle
+@lilypond[fragment]
+\new Lyrics \lyricmode { twinkle }
+@end lilypond
 
 @item @code{twin -- kle}
 @tab lyric hyphen 
 @tab
-@lilypond[fragment,relative=1]
- \notes { g'4 g }
-  \lyricsto "" \new Lyrics \lyrics {  twin -- kle }
-@end lilypond 
+@lilypond[fragment,relative=2]
+<<
+   { g'4 g }
+  \lyricsto "" \new Lyrics { twin -- kle }
+>> 
+@end lilypond
 
-@item @code{\chords @{ c:dim f:maj7 @}}
+@item @code{\chordmode @{ c:dim f:maj7 @}}
 @tab chords 
 @tab
-@lilypond[fragment,relative=1]
-  \chords { c:dim f:maj7 }
-@end lilypond 
+@lilypond[fragment,relative=2]
+\chordmode { c:dim f:maj7 }
+@end lilypond
 
 @item @code{\context ChordNames}
 @tab printing chord names 
 @tab
-@lilypond[fragment,relative=1]
-  \context ChordNames \chords { c:dim f:maj7 }
-@end lilypond 
+@lilypond[fragment,relative=2]
+\chords { c:dim f:maj7 }
+@end lilypond
 
 @item @code{<<@{e f@} \\@{c d@}>>}
 @tab polyphony