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