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