]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/cheatsheet.itely
Merge branch 'jneeman' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond into jneeman
[lilypond.git] / Documentation / user / cheatsheet.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2
3 @c TODO: add tablature.
4
5 @node Cheat sheet
6 @appendix Cheat sheet
7
8
9 @multitable @columnfractions .35 .3 .35
10
11 @item @b{Syntax}
12 @tab @b{Description}
13 @tab @b{Example}
14
15 @item @code{1 2 8 16}
16 @tab durations 
17 @tab
18 @lilypond[fragment,relative=2,notime]
19 \set Staff.autoBeaming = ##f
20 \override Staff.Clef #'break-visibility = #all-invisible
21 c1 c2 c8 c16
22 @end lilypond
23
24 @item @code{c4. c4..}
25 @tab augmentation dots
26 @tab
27 @lilypond[fragment,relative=2,notime]
28 \override Staff.Clef #'break-visibility = #all-invisible
29 c4. c4..  
30 @end lilypond
31
32 @item @code{c d e f g a b }
33 @tab scale 
34 @tab
35 @lilypond[fragment,relative=1,notime]
36 c d e f g a b
37 @end lilypond
38
39 @item @code{fis bes}
40 @tab alteration 
41 @tab
42 @lilypond[fragment,relative=1,notime]
43 fis bes
44 @end lilypond
45
46 @item @code{\clef treble \clef bass }
47 @tab clefs
48 @tab
49 @lilypond[fragment,notime]
50 \clef treble
51 s4_" "
52 \clef bass
53 s4_" "
54 @end lilypond
55
56 @item @code{\time 3/4 \time 4/4 }
57 @tab time signature
58 @tab
59 @lilypond[fragment]
60 \override Staff.Clef #'transparent = ##t 
61 \time 3/4
62 s4_" "
63 \time 4/4
64 s16_" "
65 @end lilypond
66
67
68 @item @code{r4 r8}
69 @tab rest 
70 @tab
71 @lilypond[relative=2,notime,fragment]
72 \override Staff.Clef #'break-visibility = #all-invisible
73 r4 r8
74 @end lilypond
75
76 @item @code{d ~ d}
77 @tab tie
78 @tab
79 @lilypond[relative=2,notime,fragment]
80 \set Score.timing = ##f
81 \set Staff.autoBeaming = ##f
82 d ~ d
83 @end lilypond
84
85 @item @code{\key es \major }
86 @tab key signature
87 @tab
88 @lilypond[notime,fragment]
89 \clef treble
90 \key es \major
91 s4 
92 @end lilypond
93
94 @item @var{note}@code{'}
95 @tab raise octave
96 @tab
97 @lilypond[relative=2,notime,fragment]
98 \set Score.timing = ##f
99 \set Staff.autoBeaming = ##f
100 a a'
101 @end lilypond
102
103 @item @var{note}@code{,}
104 @tab lower octave
105 @tab
106 @lilypond[relative=2,notime,fragment]
107 \set Score.timing = ##f
108 \set Staff.autoBeaming = ##f
109 c c,
110 @end lilypond
111
112
113 @item @code{c( d e)}
114 @tab slur
115 @tab
116 @lilypond[fragment,relative=2]
117 \set Score.timing = ##f
118 \override Staff.TimeSignature #'break-visibility = #all-invisible
119 \set Staff.autoBeaming = ##f
120 c( d e)
121 @end lilypond
122
123
124 @item @code{c\( c( d) e\)}
125 @tab phrasing slur
126 @tab
127 @lilypond[fragment,relative=2]
128 \set Score.timing = ##f
129 \override Staff.TimeSignature #'break-visibility = #all-invisible
130 \set Staff.autoBeaming = ##f
131 c\( c( d) e\)
132 @end lilypond
133
134
135 @item @code{a8[ b]}
136 @tab beam
137 @tab
138 @lilypond[fragment,relative=2]
139 \set Score.timing = ##f
140 \override Staff.TimeSignature #'break-visibility = #all-invisible
141 \set Staff.autoBeaming = ##f
142 a8-[ b-]
143 @end lilypond
144
145
146 @item @code{<< \new Staff ... >>}
147 @tab more staves
148 @tab
149 @lilypond[fragment]
150 << \new Staff { c'1 }
151   \new Staff { c'1 } >>
152 @end lilypond
153
154   
155 @item @code{c-> c-.}
156 @tab articulations
157 @tab
158 @lilypond[fragment,relative=2]
159 \override Staff.TimeSignature #'break-visibility = #all-invisible
160 c-> c-.
161 @end lilypond
162
163
164 @item @code{c\mf c\sfz}
165 @tab dynamics
166 @tab
167 @lilypond[fragment,relative=2]
168 \override Staff.TimeSignature #'break-visibility = #all-invisible
169 c\mf c\sfz
170 @end lilypond
171
172
173 @item @code{a\< a a\!}
174 @tab crescendo
175 @tab
176 @lilypond[fragment,relative=2]
177 \set Score.timing = ##f
178 \override Staff.TimeSignature #'break-visibility = #all-invisible
179 \set Staff.autoBeaming = ##f
180 a\< a a\!
181 @end lilypond
182
183 @item @code{a\> a a\!}
184 @tab decrescendo
185 @tab
186 @lilypond[fragment,relative=2]
187 \set Score.timing = ##f
188 \override Staff.TimeSignature #'break-visibility = #all-invisible
189 \set Staff.autoBeaming = ##f
190 a\> a a\!
191 @end lilypond
192
193
194 @item @code{< >}
195 @tab chord
196 @tab
197 @lilypond[fragment,relative=2]
198 <c e> 
199 @end lilypond
200
201
202 @item @code{\partial 8}
203 @tab upstep
204 @tab
205 @lilypond[fragment,relative=2]
206 \partial 8
207 f8 c2 d e
208 @end lilypond
209
210
211 @item @code{\times 2/3 @{f g a@}}
212 @tab triplets
213 @tab
214 @lilypond[relative=1,fragment]
215 \times 2/3 { f8 g a }
216 @end lilypond
217
218
219 @item @code{\grace}
220 @tab grace notes
221 @tab
222 @lilypond[relative=2,fragment]
223 \context Voice { \grace b16 c4 }
224 @end lilypond
225
226 @item @code{\lyricmode @{ twinkle @}}
227 @tab entering lyrics
228 @tab
229 twinkle
230
231
232 @item @code{\new Lyrics}
233 @tab printing lyrics
234 @tab
235 @lilypond[fragment]
236 \new Lyrics \lyricmode { twinkle }
237 @end lilypond
238
239 @item @code{twin -- kle}
240 @tab lyric hyphen 
241 @tab
242 @lilypond[fragment,relative=2]
243 <<
244    { g'1 g }
245   \new Lyrics \lyricsto "" { twin -- kle }
246 >> 
247 @end lilypond
248
249 @item @code{\chordmode @{ c:dim f:maj7 @}}
250 @tab chords 
251 @tab
252 @lilypond[fragment,relative=2]
253 \chordmode { c:dim f:maj7 }
254 @end lilypond
255
256 @item @code{\context ChordNames}
257 @tab printing chord names 
258 @tab
259 @lilypond[fragment,relative=2]
260 \chords { c:dim f:maj7 }
261 @end lilypond
262
263 @item @code{<<@{e f@} \\ @{c d@}>>}
264 @tab polyphony
265 @tab
266 @lilypond[fragment,relative=2]
267 \context Staff <<{e f} \\ {c d}>>
268 @end lilypond
269
270
271 @item @code{s4 s8 s16}
272 @tab spacer rests
273 @tab
274
275 @end multitable
276