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