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