]>
Commit | Line | Data |
---|---|---|
16847231 IB |
1 | ################################# |
2 | ##### General configuration ##### | |
3 | ## Keep in mind that in-line option override these | |
4 | ||
5 | #option listed here are the default options. | |
6 | config: | |
7 | # debug info | |
8 | debug: false | |
9 | # languages. Available: fr, en | |
10 | language: fr | |
11 | # path to the musics. | |
12 | music_path: . | |
13 | # The awful red message that shows up when you lose the focus | |
14 | focus_warning: true | |
15 | # built-in mixing | |
3a488f9f | 16 | builtin_mixing: false |
16847231 IB |
17 | # Device used for playing musics. Default value depends on your system |
18 | # device: | |
19 | # Advanced parameters: use at your own risk! (your computer probably won't explode, though) | |
20 | latency: high | |
21 | blocksize: 0 | |
22 | frame_rate: 44100 | |
23 | sample_width: 2 | |
24 | channels: 2 | |
25 | ||
26 | ||
27 | ||
28 | ||
85fdcdb7 IB |
29 | ################### |
30 | ##### Aliases ##### | |
31 | ||
8f88a3e4 | 32 | aliases: |
85fdcdb7 IB |
33 | # for files |
34 | music1: | |
35 | file: "short_blues.mp3" | |
36 | music2: | |
37 | file: "to_the_Fantasy_war.mp3" | |
38 | noise: | |
39 | file: "croco.mp3" | |
40 | # aliases for colors | |
41 | blue: | |
42 | color: [50, 50, 255] | |
43 | orange: | |
44 | color: [255, 126, 0] | |
45 | yellow: | |
46 | color: [250, 250, 0] | |
47 | red: | |
48 | color: [255, 20, 20] | |
49 | light_blue: | |
50 | color: [100, 150, 255] | |
51 | green: | |
52 | color: [50, 180, 50] | |
53 | light_green: | |
54 | color: [150, 255, 100] | |
55 | purple: | |
16759756 | 56 | color: [190, 110, 236] |
85fdcdb7 IB |
57 | pink: |
58 | color: [255, 50, 255] | |
16759756 | 59 | |
85fdcdb7 IB |
60 | #################################################### |
61 | ##### Music properties: name and general gain ###### | |
87f211fb IB |
62 | |
63 | music_properties: | |
85fdcdb7 IB |
64 | "short_blues.mp3": |
65 | name: Short Blues (music 1) | |
66 | "to_the_Fantasy_war.mp3": | |
67 | name: To the Fantasy War (music 2) | |
68 | "croco.mp3": | |
69 | name: Crocodile noise | |
16759756 | 70 | gain: 1.2 |
85fdcdb7 | 71 | |
16847231 IB |
72 | ############################################################################### |
73 | ##### Key properties: how do the key look like, and some other properties ##### | |
b86db9f1 IB |
74 | |
75 | key_properties: | |
76 | 'a': | |
77 | description: | |
16759756 | 78 | - |
85fdcdb7 IB |
79 | - Music 1 |
80 | include: light_blue | |
b86db9f1 IB |
81 | 'z': |
82 | description: | |
85fdcdb7 IB |
83 | - |
84 | - Music 2 | |
85 | include: light_blue | |
b86db9f1 IB |
86 | 'e': |
87 | description: | |
85fdcdb7 IB |
88 | - |
89 | - Noise | |
90 | include: light_blue | |
b86db9f1 IB |
91 | 't': |
92 | description: | |
85fdcdb7 IB |
93 | - |
94 | - Crossfade | |
95 | - music 2 | |
96 | include: green | |
97 | repeat_delay: 5 | |
b86db9f1 IB |
98 | 'y': |
99 | description: | |
85fdcdb7 IB |
100 | - |
101 | - Stop wait | |
102 | - music 2 | |
103 | include: green | |
b86db9f1 IB |
104 | 'u': |
105 | description: | |
85fdcdb7 IB |
106 | - |
107 | - Noise | |
108 | - + Music 2 | |
109 | include: green | |
110 | ||
111 | 'g': | |
b86db9f1 | 112 | description: |
85fdcdb7 IB |
113 | - |
114 | - Music 1 | |
115 | - Seek 30/60 | |
116 | include: purple | |
117 | ||
118 | 'i': | |
b86db9f1 | 119 | description: |
85fdcdb7 IB |
120 | - |
121 | - Noise | |
122 | - +low vol | |
123 | include: green | |
124 | ||
125 | 'h': | |
b86db9f1 | 126 | description: |
85fdcdb7 IB |
127 | - |
128 | - Noise | |
129 | - 3 times | |
130 | include: purple | |
131 | repeat_delay: 2 | |
132 | ||
133 | 'm': | |
b86db9f1 | 134 | description: |
85fdcdb7 IB |
135 | - |
136 | - Musics | |
137 | - 1 & 2 | |
138 | include: purple | |
139 | ||
140 | 'n': | |
b86db9f1 | 141 | description: |
85fdcdb7 IB |
142 | - |
143 | - Low vol | |
144 | - Up vol | |
145 | include: green | |
146 | ||
147 | 'home': | |
b86db9f1 | 148 | description: |
85fdcdb7 IB |
149 | - |
150 | - vlc | |
151 | include: orange | |
152 | ||
153 | ||
154 | ## Some general useful keys | |
155 | ||
156 | 'ESC': | |
b86db9f1 | 157 | description: |
85fdcdb7 IB |
158 | - "!" |
159 | - STOP! | |
160 | include: red | |
161 | ||
162 | 'F5': | |
b86db9f1 | 163 | description: |
85fdcdb7 IB |
164 | - "||" |
165 | - PAUSE | |
166 | include: light_green | |
167 | ||
168 | 'F6': | |
b86db9f1 | 169 | description: |
85fdcdb7 IB |
170 | - ">" |
171 | - UNPAUSE | |
172 | include: light_green | |
173 | ||
174 | 'F1': | |
b86db9f1 | 175 | description: |
16759756 | 176 | - |
85fdcdb7 IB |
177 | - Stop |
178 | - fade | |
179 | include: orange | |
180 | ||
181 | 'F2': | |
b86db9f1 | 182 | description: |
16759756 | 183 | - |
85fdcdb7 IB |
184 | - Stop |
185 | - actions | |
186 | include: orange | |
187 | ||
188 | 'F4': | |
b86db9f1 | 189 | description: |
85fdcdb7 IB |
190 | - |
191 | - Skip | |
192 | - wait | |
193 | include: pink | |
194 | ||
195 | 'F12': | |
b58b8220 IB |
196 | description: |
197 | - | |
85fdcdb7 IB |
198 | - vol+ |
199 | include: yellow | |
b58b8220 | 200 | |
85fdcdb7 | 201 | 'F11': |
b58b8220 | 202 | description: |
85fdcdb7 IB |
203 | - |
204 | - "vol-" | |
205 | include: yellow | |
b58b8220 | 206 | |
85fdcdb7 | 207 | 'right': |
b58b8220 | 208 | description: |
85fdcdb7 IB |
209 | - |
210 | - +10s | |
211 | include: blue | |
b86db9f1 | 212 | |
85fdcdb7 | 213 | 'left': |
16759756 | 214 | description: |
85fdcdb7 IB |
215 | - |
216 | - -10s | |
217 | include: blue | |
16759756 | 218 | |
85fdcdb7 IB |
219 | ################################################################# |
220 | ##### Keys: what do the key actually do when you press them ##### | |
8f88a3e4 IB |
221 | |
222 | keys: | |
85fdcdb7 | 223 | # Play the songs |
8f88a3e4 IB |
224 | 'a': |
225 | - play: | |
85fdcdb7 | 226 | include: music1 |
8f88a3e4 | 227 | 'z': |
b86db9f1 | 228 | - play: |
85fdcdb7 | 229 | include: music2 |
b86db9f1 | 230 | 'e': |
b86db9f1 | 231 | - play: |
85fdcdb7 IB |
232 | include: noise |
233 | ||
234 | # Crossfade from any music to music 2 | |
b86db9f1 | 235 | 't': |
8f88a3e4 | 236 | - stop: |
b86db9f1 | 237 | fade_out: 5 |
0e5d59f7 | 238 | - play: |
85fdcdb7 IB |
239 | include: music2 |
240 | fade_in: 5 | |
87f211fb | 241 | |
85fdcdb7 IB |
242 | # Fade out, then wait and start music 2 |
243 | 'y': | |
244 | - stop: | |
b86db9f1 | 245 | fade_out: 3 |
85fdcdb7 IB |
246 | wait: true |
247 | set_wait_id: y1 | |
b86db9f1 | 248 | - wait: |
85fdcdb7 IB |
249 | duration: 3 |
250 | set_wait_id: y2 | |
251 | - play: | |
252 | include: music2 | |
253 | ||
254 | # Play the noise, stop music 1, wait a bit then start music 2 | |
255 | 'u': | |
b58b8220 | 256 | - play: |
85fdcdb7 | 257 | include: noise |
b58b8220 | 258 | - wait: |
85fdcdb7 | 259 | duration: 0.2 |
b86db9f1 | 260 | - stop: |
85fdcdb7 IB |
261 | include: music1 |
262 | - wait: | |
263 | duration: 3 | |
264 | set_wait_id: u | |
265 | - play: | |
266 | include: music2 | |
b58b8220 | 267 | |
85fdcdb7 IB |
268 | # Play music 1, starting at 30 seconds then seeks at 60 after 5 seconds |
269 | 'g': | |
270 | - play: | |
271 | include: music1 | |
272 | start_at: 30 | |
273 | - wait: | |
274 | duration: 5 | |
275 | set_wait_id: g | |
276 | - seek: | |
277 | include: music1 | |
278 | delta: false | |
279 | value: 60 | |
280 | ||
281 | # Play music 1 and 2, after stopping all musics with a fade_out (and wait for this fade out) | |
b86db9f1 IB |
282 | 'm': |
283 | - stop: | |
85fdcdb7 IB |
284 | fade_out: 2 |
285 | wait: true | |
b86db9f1 | 286 | - play: |
85fdcdb7 | 287 | include: music1 |
b86db9f1 | 288 | - wait: |
85fdcdb7 IB |
289 | include: music1 |
290 | set_wait_id: m | |
b86db9f1 | 291 | - play: |
85fdcdb7 IB |
292 | include: music2 |
293 | ||
294 | # Lowers the volume of music 1 and 2 (if playing), during the duration of noise + 1 second | |
295 | 'i': | |
296 | - volume: | |
297 | include: music1 | |
298 | value: 50 | |
299 | - volume: | |
300 | include: music2 | |
301 | value: 50 | |
16759756 | 302 | - play: |
85fdcdb7 | 303 | include: noise |
16759756 | 304 | - wait: |
85fdcdb7 IB |
305 | include: noise |
306 | duration: 1 | |
307 | set_wait_id: i | |
16759756 | 308 | - volume: |
85fdcdb7 IB |
309 | include: music1 |
310 | value: 100 | |
311 | fade: 1 | |
16759756 | 312 | - volume: |
85fdcdb7 IB |
313 | include: music2 |
314 | value: 100 | |
315 | fade: 1 | |
316 | ||
317 | # Lowers the volume of music 1 and 2 (if playing) down to 10% with a 5 seconds fade, then back to 100% | |
318 | 'n' : | |
16759756 | 319 | - volume: |
85fdcdb7 IB |
320 | include: music1 |
321 | value: 10 | |
322 | fade: 5 | |
323 | - volume: | |
324 | include: music2 | |
325 | value: 10 | |
326 | fade: 5 | |
16759756 | 327 | - wait: |
85fdcdb7 IB |
328 | duration: 5 |
329 | set_wait_id: n | |
16759756 | 330 | - volume: |
85fdcdb7 IB |
331 | include: music1 |
332 | value: 100 | |
333 | fade: 5 | |
334 | - volume: | |
335 | include: music2 | |
336 | value: 100 | |
337 | fade: 5 | |
16759756 | 338 | |
85fdcdb7 IB |
339 | # Stops all musics, then plays noise repeated twice (3 times) |
340 | 'h': | |
341 | - stop: | |
342 | fade_out: 0.5 | |
343 | - play: | |
344 | include: noise | |
345 | loop: 2 | |
346 | ||
347 | 'home': | |
348 | - run_command: | |
349 | command: vlc *.mp3 | |
350 | wait: true | |
16759756 IB |
351 | |
352 | ||
85fdcdb7 IB |
353 | ##### Useful keys (good to have them all the time) |
354 | ||
355 | # Emergency stop! | |
8f88a3e4 | 356 | 'ESC': |
85fdcdb7 IB |
357 | - stop_all_actions: |
358 | other_only: true | |
359 | - stop: | |
b86db9f1 | 360 | |
b58b8220 | 361 | |
b58b8220 | 362 | |
85fdcdb7 IB |
363 | # Pause and unpause |
364 | 'F5': | |
365 | - pause: | |
366 | ||
367 | 'F6': | |
368 | - unpause: | |
369 | ||
370 | # Stopping all musics, with a short fade (sounds natural) | |
371 | 'F1': | |
16759756 IB |
372 | - stop: |
373 | fade_out: 1 | |
374 | ||
85fdcdb7 IB |
375 | # Stopping all actions |
376 | 'F2': | |
377 | - stop_all_actions: | |
378 | ||
379 | # Skip wait | |
380 | 'F4': | |
381 | - interrupt_wait: | |
382 | wait_id: n | |
383 | - interrupt_wait: | |
384 | wait_id: m | |
385 | - interrupt_wait: | |
386 | wait_id: i | |
387 | - interrupt_wait: | |
388 | wait_id: y1 | |
389 | - interrupt_wait: | |
390 | wait_id: y2 | |
391 | - interrupt_wait: | |
392 | wait_id: u | |
393 | - interrupt_wait: | |
394 | wait_id: g | |
395 | ||
396 | ||
397 | # Changing volume | |
398 | 'F12': | |
399 | - volume: | |
400 | delta: true | |
401 | value: +10 | |
402 | fade: 0.5 | |
403 | ||
404 | 'F11': | |
405 | - volume: | |
406 | delta: true | |
407 | value: -10 | |
408 | fade: 0.5 | |
409 | ||
410 | ||
411 | # Seek +- 10 seconds | |
412 | 'right': | |
413 | - seek: | |
414 | value: 10 | |
415 | delta: true | |
416 | ||
417 | 'left': | |
418 | - seek: | |
419 | value: -10 | |
420 | delta: true | |
421 | ||
422 |