]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blob - config.yml
36c804b01cddca59a820a7e3b6dc5c93817b3918
[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 't':
96 description:
97 -
98 - Crossfade
99 - music 2
100 include: green
101 repeat_delay: 5
102 'y':
103 description:
104 -
105 - Stop wait
106 - music 2
107 include: green
108 'u':
109 description:
110 -
111 - Noise
112 - + Music 2
113 include: green
114
115 'g':
116 description:
117 -
118 - Music 1
119 - Seek 30/60
120 include: purple
121
122 'i':
123 description:
124 -
125 - Noise
126 - +low vol
127 include: green
128
129 'h':
130 description:
131 -
132 - Noise
133 - 3 times
134 include: purple
135 repeat_delay: 2
136
137 'm':
138 description:
139 -
140 - Musics
141 - 1 & 2
142 include: purple
143
144 'n':
145 description:
146 -
147 - Low vol
148 - Up vol
149 include: green
150 'ù':
151 description:
152 -
153 - stop
154 - wait
155
156 'home':
157 description:
158 -
159 - vlc
160 include: orange
161
162
163 ## Some general useful keys
164
165 'ESC':
166 description:
167 - "!"
168 - STOP!
169 include: red
170 repeat_delay: 0
171
172 'F5':
173 description:
174 - "||"
175 - PAUSE
176 include: light_green
177 repeat_delay: 0
178
179 'F6':
180 description:
181 - ">"
182 - UNPAUSE
183 include: light_green
184 repeat_delay: 0
185
186 'F1':
187 description:
188 -
189 - Stop
190 - fade
191 include: orange
192 repeat_delay: 0
193
194 'F2':
195 description:
196 -
197 - Stop
198 - actions
199 include: orange
200 repeat_delay: 0
201
202 'F4':
203 description:
204 -
205 - Skip
206 - wait
207 include: pink
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
225
226 'F12':
227 description:
228 -
229 - vol+
230 include: yellow
231 repeat_delay: 0
232
233 'F11':
234 description:
235 -
236 - "vol-"
237 include: yellow
238 repeat_delay: 0
239
240 'right':
241 description:
242 -
243 - +10s
244 include: blue
245 repeat_delay: 0
246
247 'left':
248 description:
249 -
250 - -10s
251 include: blue
252 repeat_delay: 0
253
254 #################################################################
255 ##### Keys: what do the key actually do when you press them #####
256
257 keys:
258 # Play the songs
259 'a':
260 - play:
261 include: music1
262 'z':
263 - play:
264 include: music2
265 'e':
266 - play:
267 include: noise
268
269 # Crossfade from any music to music 2
270 't':
271 - stop:
272 fade_out: 5
273 - play:
274 include: music2
275 fade_in: 5
276
277 # Fade out, then wait and start music 2
278 'y':
279 - stop:
280 fade_out: 3
281 wait: true
282 - wait:
283 duration: 3
284 - play:
285 include: music2
286
287 # Play the noise, stop music 1, wait a bit then start music 2
288 'u':
289 - play:
290 include: noise
291 - wait:
292 duration: 0.2
293 - stop:
294 include: music1
295 - wait:
296 duration: 3
297 - play:
298 include: music2
299
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
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)
313 'm':
314 - stop:
315 fade_out: 2
316 wait: true
317 - play:
318 include: music1
319 - wait:
320 include: music1
321 set_wait_id: m
322 - play:
323 include: music2
324
325 # skip waiting for the end of music1
326 'ù':
327 - interrupt_wait:
328 wait_id: m
329
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
338 - play:
339 include: noise
340 - wait:
341 include: noise
342 duration: 1
343 - volume:
344 include: music1
345 value: 100
346 fade: 1
347 - volume:
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' :
354 - volume:
355 include: music1
356 value: 10
357 fade: 5
358 - volume:
359 include: music2
360 value: 10
361 fade: 5
362 - wait:
363 duration: 5
364 - volume:
365 include: music1
366 value: 100
367 fade: 5
368 - volume:
369 include: music2
370 value: 100
371 fade: 5
372
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
385
386
387 ##### Useful keys (good to have them all the time)
388
389 # Emergency stop!
390 'ESC':
391 - stop_all_actions:
392 other_only: true
393 - stop:
394
395
396
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':
406 - stop:
407 fade_out: 1
408
409 # Stopping all actions
410 'F2':
411 - stop_all_actions:
412
413 # Skip wait
414 'F4':
415 - interrupt_wait:
416
417 'F8':
418 - pause_wait:
419
420 'F9':
421 - unpause_wait:
422
423 'F10':
424 - reset_wait:
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