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