]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blame - config.yml
bump config.yml
[perso/Immae/Projets/Python/MusicSampler.git] / config.yml
CommitLineData
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.
6config:
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 32aliases:
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
63music_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
75key_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
d88794ab
IB
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
b86db9f1
IB
131 't':
132 description:
85fdcdb7
IB
133 -
134 - Crossfade
135 - music 2
136 include: green
137 repeat_delay: 5
b86db9f1
IB
138 'y':
139 description:
85fdcdb7
IB
140 -
141 - Stop wait
142 - music 2
143 include: green
85fdcdb7
IB
144
145 'g':
b86db9f1 146 description:
85fdcdb7
IB
147 -
148 - Music 1
149 - Seek 30/60
150 include: purple
151
152 'i':
b86db9f1 153 description:
85fdcdb7
IB
154 -
155 - Noise
156 - +low vol
157 include: green
158
159 'h':
b86db9f1 160 description:
85fdcdb7
IB
161 -
162 - Noise
163 - 3 times
164 include: purple
165 repeat_delay: 2
166
167 'm':
b86db9f1 168 description:
85fdcdb7
IB
169 -
170 - Musics
171 - 1 & 2
172 include: purple
173
174 'n':
b86db9f1 175 description:
85fdcdb7
IB
176 -
177 - Low vol
178 - Up vol
179 include: green
d4217fda
IB
180 'ù':
181 description:
182 -
183 - stop
184 - wait
85fdcdb7
IB
185
186 'home':
b86db9f1 187 description:
85fdcdb7
IB
188 -
189 - vlc
190 include: orange
191
192
193## Some general useful keys
194
195 'ESC':
b86db9f1 196 description:
85fdcdb7
IB
197 - "!"
198 - STOP!
199 include: red
d4217fda 200 repeat_delay: 0
85fdcdb7
IB
201
202 'F5':
b86db9f1 203 description:
85fdcdb7
IB
204 - "||"
205 - PAUSE
206 include: light_green
d4217fda 207 repeat_delay: 0
85fdcdb7
IB
208
209 'F6':
b86db9f1 210 description:
85fdcdb7
IB
211 - ">"
212 - UNPAUSE
213 include: light_green
d4217fda 214 repeat_delay: 0
85fdcdb7
IB
215
216 'F1':
b86db9f1 217 description:
16759756 218 -
85fdcdb7
IB
219 - Stop
220 - fade
221 include: orange
d4217fda 222 repeat_delay: 0
85fdcdb7
IB
223
224 'F2':
b86db9f1 225 description:
16759756 226 -
85fdcdb7
IB
227 - Stop
228 - actions
229 include: orange
d4217fda 230 repeat_delay: 0
85fdcdb7
IB
231
232 'F4':
b86db9f1 233 description:
85fdcdb7
IB
234 -
235 - Skip
236 - wait
237 include: pink
d4217fda
IB
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
85fdcdb7
IB
255
256 'F12':
b58b8220
IB
257 description:
258 -
85fdcdb7
IB
259 - vol+
260 include: yellow
d4217fda 261 repeat_delay: 0
b58b8220 262
85fdcdb7 263 'F11':
b58b8220 264 description:
85fdcdb7
IB
265 -
266 - "vol-"
267 include: yellow
d4217fda 268 repeat_delay: 0
b58b8220 269
85fdcdb7 270 'right':
b58b8220 271 description:
85fdcdb7
IB
272 -
273 - +10s
274 include: blue
d4217fda 275 repeat_delay: 0
b86db9f1 276
85fdcdb7 277 'left':
16759756 278 description:
85fdcdb7
IB
279 -
280 - -10s
281 include: blue
d4217fda 282 repeat_delay: 0
16759756 283
85fdcdb7
IB
284#################################################################
285##### Keys: what do the key actually do when you press them #####
8f88a3e4
IB
286
287keys:
85fdcdb7 288# Play the songs
8f88a3e4
IB
289 'a':
290 - play:
85fdcdb7 291 include: music1
8f88a3e4 292 'z':
b86db9f1 293 - play:
85fdcdb7 294 include: music2
b86db9f1 295 'e':
b86db9f1 296 - play:
85fdcdb7
IB
297 include: noise
298
d88794ab
IB
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
85fdcdb7 321# Crossfade from any music to music 2
b86db9f1 322 't':
8f88a3e4 323 - stop:
b86db9f1 324 fade_out: 5
0e5d59f7 325 - play:
85fdcdb7
IB
326 include: music2
327 fade_in: 5
87f211fb 328
85fdcdb7
IB
329# Fade out, then wait and start music 2
330 'y':
b86db9f1 331 - wait:
85fdcdb7
IB
332 include: music2
333
334# Play the noise, stop music 1, wait a bit then start music 2
b58b8220 335
85fdcdb7
IB
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
85fdcdb7
IB
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)
b86db9f1
IB
349 'm':
350 - stop:
85fdcdb7
IB
351 fade_out: 2
352 wait: true
b86db9f1 353 - play:
85fdcdb7 354 include: music1
b86db9f1 355 - wait:
85fdcdb7
IB
356 include: music1
357 set_wait_id: m
b86db9f1 358 - play:
85fdcdb7
IB
359 include: music2
360
d4217fda
IB
361# skip waiting for the end of music1
362 'ù':
363 - interrupt_wait:
364 wait_id: m
365
85fdcdb7
IB
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
16759756 374 - play:
85fdcdb7 375 include: noise
16759756 376 - wait:
85fdcdb7
IB
377 include: noise
378 duration: 1
16759756 379 - volume:
85fdcdb7
IB
380 include: music1
381 value: 100
382 fade: 1
16759756 383 - volume:
85fdcdb7
IB
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' :
16759756 390 - volume:
85fdcdb7
IB
391 include: music1
392 value: 10
393 fade: 5
394 - volume:
395 include: music2
396 value: 10
397 fade: 5
16759756 398 - wait:
85fdcdb7 399 duration: 5
16759756 400 - volume:
85fdcdb7
IB
401 include: music1
402 value: 100
403 fade: 5
404 - volume:
405 include: music2
406 value: 100
407 fade: 5
16759756 408
85fdcdb7
IB
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
16759756
IB
421
422
85fdcdb7
IB
423##### Useful keys (good to have them all the time)
424
425# Emergency stop!
8f88a3e4 426 'ESC':
85fdcdb7
IB
427 - stop_all_actions:
428 other_only: true
429 - stop:
b86db9f1 430
b58b8220 431
b58b8220 432
85fdcdb7
IB
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':
16759756
IB
442 - stop:
443 fade_out: 1
444
85fdcdb7
IB
445# Stopping all actions
446 'F2':
447 - stop_all_actions:
448
449# Skip wait
450 'F4':
451 - interrupt_wait:
85fdcdb7 452
d4217fda
IB
453 'F8':
454 - pause_wait:
455
456 'F9':
457 - unpause_wait:
458
459 'F10':
460 - reset_wait:
85fdcdb7
IB
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