]>
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 | |
4094ae4e | 15 | # built-in mixing, try this if your system can't mix the musics by itself |
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: | |
4094ae4e IB |
76 | 'common': |
77 | repeat_delay: 1 | |
d4217fda IB |
78 | include: blue |
79 | ||
b86db9f1 IB |
80 | 'a': |
81 | description: | |
16759756 | 82 | - |
85fdcdb7 IB |
83 | - Music 1 |
84 | include: light_blue | |
b86db9f1 IB |
85 | 'z': |
86 | description: | |
85fdcdb7 IB |
87 | - |
88 | - Music 2 | |
89 | include: light_blue | |
b86db9f1 IB |
90 | 'e': |
91 | description: | |
85fdcdb7 IB |
92 | - |
93 | - Noise | |
94 | include: light_blue | |
b86db9f1 IB |
95 | 't': |
96 | description: | |
85fdcdb7 IB |
97 | - |
98 | - Crossfade | |
99 | - music 2 | |
100 | include: green | |
101 | repeat_delay: 5 | |
b86db9f1 IB |
102 | 'y': |
103 | description: | |
85fdcdb7 IB |
104 | - |
105 | - Stop wait | |
106 | - music 2 | |
107 | include: green | |
b86db9f1 IB |
108 | 'u': |
109 | description: | |
85fdcdb7 IB |
110 | - |
111 | - Noise | |
112 | - + Music 2 | |
113 | include: green | |
114 | ||
115 | 'g': | |
b86db9f1 | 116 | description: |
85fdcdb7 IB |
117 | - |
118 | - Music 1 | |
119 | - Seek 30/60 | |
120 | include: purple | |
121 | ||
122 | 'i': | |
b86db9f1 | 123 | description: |
85fdcdb7 IB |
124 | - |
125 | - Noise | |
126 | - +low vol | |
127 | include: green | |
128 | ||
129 | 'h': | |
b86db9f1 | 130 | description: |
85fdcdb7 IB |
131 | - |
132 | - Noise | |
133 | - 3 times | |
134 | include: purple | |
135 | repeat_delay: 2 | |
136 | ||
137 | 'm': | |
b86db9f1 | 138 | description: |
85fdcdb7 IB |
139 | - |
140 | - Musics | |
141 | - 1 & 2 | |
142 | include: purple | |
143 | ||
144 | 'n': | |
b86db9f1 | 145 | description: |
85fdcdb7 IB |
146 | - |
147 | - Low vol | |
148 | - Up vol | |
149 | include: green | |
d4217fda IB |
150 | 'ù': |
151 | description: | |
152 | - | |
153 | - stop | |
154 | - wait | |
85fdcdb7 IB |
155 | |
156 | 'home': | |
b86db9f1 | 157 | description: |
85fdcdb7 IB |
158 | - |
159 | - vlc | |
160 | include: orange | |
161 | ||
162 | ||
163 | ## Some general useful keys | |
164 | ||
165 | 'ESC': | |
b86db9f1 | 166 | description: |
85fdcdb7 IB |
167 | - "!" |
168 | - STOP! | |
169 | include: red | |
d4217fda | 170 | repeat_delay: 0 |
85fdcdb7 IB |
171 | |
172 | 'F5': | |
b86db9f1 | 173 | description: |
85fdcdb7 IB |
174 | - "||" |
175 | - PAUSE | |
176 | include: light_green | |
d4217fda | 177 | repeat_delay: 0 |
85fdcdb7 IB |
178 | |
179 | 'F6': | |
b86db9f1 | 180 | description: |
85fdcdb7 IB |
181 | - ">" |
182 | - UNPAUSE | |
183 | include: light_green | |
d4217fda | 184 | repeat_delay: 0 |
85fdcdb7 IB |
185 | |
186 | 'F1': | |
b86db9f1 | 187 | description: |
16759756 | 188 | - |
85fdcdb7 IB |
189 | - Stop |
190 | - fade | |
191 | include: orange | |
d4217fda | 192 | repeat_delay: 0 |
85fdcdb7 IB |
193 | |
194 | 'F2': | |
b86db9f1 | 195 | description: |
16759756 | 196 | - |
85fdcdb7 IB |
197 | - Stop |
198 | - actions | |
199 | include: orange | |
d4217fda | 200 | repeat_delay: 0 |
85fdcdb7 IB |
201 | |
202 | 'F4': | |
b86db9f1 | 203 | description: |
85fdcdb7 IB |
204 | - |
205 | - Skip | |
206 | - wait | |
207 | include: pink | |
d4217fda IB |
208 | repeat_delay: 0 |
209 | ||
210 | 'F8': | |
211 | description: | |
212 | - | |
213 | - Pause | |
214 | - wait | |
215 | 'F9': | |
216 | description: | |
217 | - | |
218 | - Unpause | |
219 | - wait | |
220 | 'F10': | |
221 | description: | |
222 | - | |
223 | - Reset | |
224 | - wait | |
85fdcdb7 IB |
225 | |
226 | 'F12': | |
b58b8220 IB |
227 | description: |
228 | - | |
85fdcdb7 IB |
229 | - vol+ |
230 | include: yellow | |
d4217fda | 231 | repeat_delay: 0 |
b58b8220 | 232 | |
85fdcdb7 | 233 | 'F11': |
b58b8220 | 234 | description: |
85fdcdb7 IB |
235 | - |
236 | - "vol-" | |
237 | include: yellow | |
d4217fda | 238 | repeat_delay: 0 |
b58b8220 | 239 | |
85fdcdb7 | 240 | 'right': |
b58b8220 | 241 | description: |
85fdcdb7 IB |
242 | - |
243 | - +10s | |
244 | include: blue | |
d4217fda | 245 | repeat_delay: 0 |
b86db9f1 | 246 | |
85fdcdb7 | 247 | 'left': |
16759756 | 248 | description: |
85fdcdb7 IB |
249 | - |
250 | - -10s | |
251 | include: blue | |
d4217fda | 252 | repeat_delay: 0 |
16759756 | 253 | |
85fdcdb7 IB |
254 | ################################################################# |
255 | ##### Keys: what do the key actually do when you press them ##### | |
8f88a3e4 IB |
256 | |
257 | keys: | |
85fdcdb7 | 258 | # Play the songs |
8f88a3e4 IB |
259 | 'a': |
260 | - play: | |
85fdcdb7 | 261 | include: music1 |
8f88a3e4 | 262 | 'z': |
b86db9f1 | 263 | - play: |
85fdcdb7 | 264 | include: music2 |
b86db9f1 | 265 | 'e': |
b86db9f1 | 266 | - play: |
85fdcdb7 IB |
267 | include: noise |
268 | ||
269 | # Crossfade from any music to music 2 | |
b86db9f1 | 270 | 't': |
8f88a3e4 | 271 | - stop: |
b86db9f1 | 272 | fade_out: 5 |
0e5d59f7 | 273 | - play: |
85fdcdb7 IB |
274 | include: music2 |
275 | fade_in: 5 | |
87f211fb | 276 | |
85fdcdb7 IB |
277 | # Fade out, then wait and start music 2 |
278 | 'y': | |
279 | - stop: | |
b86db9f1 | 280 | fade_out: 3 |
85fdcdb7 | 281 | wait: true |
b86db9f1 | 282 | - wait: |
85fdcdb7 | 283 | duration: 3 |
85fdcdb7 IB |
284 | - play: |
285 | include: music2 | |
286 | ||
287 | # Play the noise, stop music 1, wait a bit then start music 2 | |
288 | 'u': | |
b58b8220 | 289 | - play: |
85fdcdb7 | 290 | include: noise |
b58b8220 | 291 | - wait: |
85fdcdb7 | 292 | duration: 0.2 |
b86db9f1 | 293 | - stop: |
85fdcdb7 IB |
294 | include: music1 |
295 | - wait: | |
296 | duration: 3 | |
85fdcdb7 IB |
297 | - play: |
298 | include: music2 | |
b58b8220 | 299 | |
85fdcdb7 IB |
300 | # Play music 1, starting at 30 seconds then seeks at 60 after 5 seconds |
301 | 'g': | |
302 | - play: | |
303 | include: music1 | |
304 | start_at: 30 | |
305 | - wait: | |
306 | duration: 5 | |
85fdcdb7 IB |
307 | - seek: |
308 | include: music1 | |
309 | delta: false | |
310 | value: 60 | |
311 | ||
312 | # Play music 1 and 2, after stopping all musics with a fade_out (and wait for this fade out) | |
b86db9f1 IB |
313 | 'm': |
314 | - stop: | |
85fdcdb7 IB |
315 | fade_out: 2 |
316 | wait: true | |
b86db9f1 | 317 | - play: |
85fdcdb7 | 318 | include: music1 |
b86db9f1 | 319 | - wait: |
85fdcdb7 IB |
320 | include: music1 |
321 | set_wait_id: m | |
b86db9f1 | 322 | - play: |
85fdcdb7 IB |
323 | include: music2 |
324 | ||
d4217fda IB |
325 | # skip waiting for the end of music1 |
326 | 'ù': | |
327 | - interrupt_wait: | |
328 | wait_id: m | |
329 | ||
85fdcdb7 IB |
330 | # Lowers the volume of music 1 and 2 (if playing), during the duration of noise + 1 second |
331 | 'i': | |
332 | - volume: | |
333 | include: music1 | |
334 | value: 50 | |
335 | - volume: | |
336 | include: music2 | |
337 | value: 50 | |
16759756 | 338 | - play: |
85fdcdb7 | 339 | include: noise |
16759756 | 340 | - wait: |
85fdcdb7 IB |
341 | include: noise |
342 | duration: 1 | |
16759756 | 343 | - volume: |
85fdcdb7 IB |
344 | include: music1 |
345 | value: 100 | |
346 | fade: 1 | |
16759756 | 347 | - volume: |
85fdcdb7 IB |
348 | include: music2 |
349 | value: 100 | |
350 | fade: 1 | |
351 | ||
352 | # Lowers the volume of music 1 and 2 (if playing) down to 10% with a 5 seconds fade, then back to 100% | |
353 | 'n' : | |
16759756 | 354 | - volume: |
85fdcdb7 IB |
355 | include: music1 |
356 | value: 10 | |
357 | fade: 5 | |
358 | - volume: | |
359 | include: music2 | |
360 | value: 10 | |
361 | fade: 5 | |
16759756 | 362 | - wait: |
85fdcdb7 | 363 | duration: 5 |
16759756 | 364 | - volume: |
85fdcdb7 IB |
365 | include: music1 |
366 | value: 100 | |
367 | fade: 5 | |
368 | - volume: | |
369 | include: music2 | |
370 | value: 100 | |
371 | fade: 5 | |
16759756 | 372 | |
85fdcdb7 IB |
373 | # Stops all musics, then plays noise repeated twice (3 times) |
374 | 'h': | |
375 | - stop: | |
376 | fade_out: 0.5 | |
377 | - play: | |
378 | include: noise | |
379 | loop: 2 | |
380 | ||
381 | 'home': | |
382 | - run_command: | |
383 | command: vlc *.mp3 | |
384 | wait: true | |
16759756 IB |
385 | |
386 | ||
85fdcdb7 IB |
387 | ##### Useful keys (good to have them all the time) |
388 | ||
389 | # Emergency stop! | |
8f88a3e4 | 390 | 'ESC': |
85fdcdb7 IB |
391 | - stop_all_actions: |
392 | other_only: true | |
393 | - stop: | |
b86db9f1 | 394 | |
b58b8220 | 395 | |
b58b8220 | 396 | |
85fdcdb7 IB |
397 | # Pause and unpause |
398 | 'F5': | |
399 | - pause: | |
400 | ||
401 | 'F6': | |
402 | - unpause: | |
403 | ||
404 | # Stopping all musics, with a short fade (sounds natural) | |
405 | 'F1': | |
16759756 IB |
406 | - stop: |
407 | fade_out: 1 | |
408 | ||
85fdcdb7 IB |
409 | # Stopping all actions |
410 | 'F2': | |
411 | - stop_all_actions: | |
412 | ||
413 | # Skip wait | |
414 | 'F4': | |
415 | - interrupt_wait: | |
85fdcdb7 | 416 | |
d4217fda IB |
417 | 'F8': |
418 | - pause_wait: | |
419 | ||
420 | 'F9': | |
421 | - unpause_wait: | |
422 | ||
423 | 'F10': | |
424 | - reset_wait: | |
85fdcdb7 IB |
425 | |
426 | # Changing volume | |
427 | 'F12': | |
428 | - volume: | |
429 | delta: true | |
430 | value: +10 | |
431 | fade: 0.5 | |
432 | ||
433 | 'F11': | |
434 | - volume: | |
435 | delta: true | |
436 | value: -10 | |
437 | fade: 0.5 | |
438 | ||
439 | ||
440 | # Seek +- 10 seconds | |
441 | 'right': | |
442 | - seek: | |
443 | value: 10 | |
444 | delta: true | |
445 | ||
446 | 'left': | |
447 | - seek: | |
448 | value: -10 | |
449 | delta: true | |
450 | ||
451 |