]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blame - config.yml
Upgrade to latest versions
[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
b798117b
IB
85 actions:
86 - play:
87 include: music1
88# Play the songs
b86db9f1
IB
89 'z':
90 description:
85fdcdb7
IB
91 -
92 - Music 2
93 include: light_blue
b798117b
IB
94 actions:
95 - play:
96 include: music2
b86db9f1
IB
97 'e':
98 description:
85fdcdb7
IB
99 -
100 - Noise
101 include: light_blue
b798117b
IB
102 actions:
103 - play:
104 include: noise
105# Load the songs
d88794ab
IB
106 'q':
107 description:
108 -
109 - Load
110 - Music 1
111 include: light_blue
b798117b
IB
112 actions:
113 - load_music:
114 include: music1
d88794ab
IB
115 's':
116 description:
117 -
118 - Load
119 - Music 2
120 include: light_blue
b798117b
IB
121 actions:
122 - load_music:
123 include: music2
d88794ab
IB
124 'd':
125 description:
126 -
127 - Load
128 - Noise
129 include: light_blue
b798117b
IB
130 actions:
131 - load_music:
132 include: noise
133# Unload the songs
d88794ab
IB
134 'w':
135 description:
136 -
137 - Unload
138 - Music 1
139 include: light_blue
b798117b
IB
140 actions:
141 - unload_music:
142 include: music1
d88794ab
IB
143 'x':
144 description:
145 -
146 - Unload
147 - Music 2
148 include: light_blue
b798117b
IB
149 actions:
150 - unload_music:
151 include: music2
d88794ab
IB
152 'c':
153 description:
154 -
155 - Unload
156 - Noise
157 include: light_blue
b798117b
IB
158 actions:
159 - unload_music:
160 include: noise
161# Crossfade from any music to music 2
b86db9f1
IB
162 't':
163 description:
85fdcdb7
IB
164 -
165 - Crossfade
166 - music 2
167 include: green
168 repeat_delay: 5
b798117b
IB
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
b86db9f1
IB
176 'y':
177 description:
85fdcdb7
IB
178 -
179 - Stop wait
180 - music 2
181 include: green
b798117b
IB
182 actions:
183 - wait:
184 include: music2
85fdcdb7 185
b798117b 186# Play music 1, starting at 30 seconds then seeks at 60 after 5 seconds
85fdcdb7 187 'g':
b86db9f1 188 description:
85fdcdb7
IB
189 -
190 - Music 1
191 - Seek 30/60
192 include: purple
b798117b
IB
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
85fdcdb7 203
b798117b 204# Lowers the volume of music 1 and 2 (if playing), during the duration of noise + 1 second
85fdcdb7 205 'i':
b86db9f1 206 description:
85fdcdb7
IB
207 -
208 - Noise
209 - +low vol
210 include: green
b798117b
IB
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
85fdcdb7 231
b798117b 232# Stops all musics, then plays noise repeated twice (3 times)
85fdcdb7 233 'h':
b86db9f1 234 description:
85fdcdb7
IB
235 -
236 - Noise
237 - 3 times
238 include: purple
239 repeat_delay: 2
b798117b
IB
240 actions:
241 - stop:
242 fade_out: 0.5
243 - play:
244 include: noise
245 loop: 2
85fdcdb7 246
b798117b 247# Play music 1 and 2, after stopping all musics with a fade_out (and wait for this fade out)
85fdcdb7 248 'm':
b86db9f1 249 description:
85fdcdb7
IB
250 -
251 - Musics
252 - 1 & 2
253 include: purple
b798117b
IB
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
85fdcdb7 265
b798117b 266# Lowers the volume of music 1 and 2 (if playing) down to 10% with a 5 seconds fade, then back to 100%
85fdcdb7 267 'n':
b86db9f1 268 description:
85fdcdb7
IB
269 -
270 - Low vol
271 - Up vol
272 include: green
b798117b
IB
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
d4217fda
IB
293 'ù':
294 description:
295 -
296 - stop
297 - wait
b798117b
IB
298 actions:
299 - interrupt_wait:
300 wait_id: m
85fdcdb7
IB
301
302 'home':
b86db9f1 303 description:
85fdcdb7
IB
304 -
305 - vlc
306 include: orange
b798117b
IB
307 actions:
308 - run_command:
309 command: vlc *.mp3
310 wait: true
85fdcdb7
IB
311
312
313## Some general useful keys
314
b798117b 315# Emergency stop!
85fdcdb7 316 'ESC':
b86db9f1 317 description:
85fdcdb7
IB
318 - "!"
319 - STOP!
320 include: red
d4217fda 321 repeat_delay: 0
b798117b
IB
322 actions:
323 - stop_all_actions:
324 other_only: true
325 - stop:
85fdcdb7 326
b798117b 327# Pause and unpause
85fdcdb7 328 'F5':
b86db9f1 329 description:
85fdcdb7
IB
330 - "||"
331 - PAUSE
332 include: light_green
d4217fda 333 repeat_delay: 0
b798117b
IB
334 actions:
335 - pause:
85fdcdb7
IB
336
337 'F6':
b86db9f1 338 description:
85fdcdb7
IB
339 - ">"
340 - UNPAUSE
341 include: light_green
d4217fda 342 repeat_delay: 0
b798117b
IB
343 actions:
344 - unpause:
85fdcdb7 345
b798117b 346# Stopping all musics, with a short fade (sounds natural)
85fdcdb7 347 'F1':
b86db9f1 348 description:
16759756 349 -
85fdcdb7
IB
350 - Stop
351 - fade
352 include: orange
d4217fda 353 repeat_delay: 0
b798117b
IB
354 actions:
355 - stop:
356 fade_out: 1
85fdcdb7 357
b798117b 358# Stopping all actions
85fdcdb7 359 'F2':
b86db9f1 360 description:
16759756 361 -
85fdcdb7
IB
362 - Stop
363 - actions
364 include: orange
d4217fda 365 repeat_delay: 0
b798117b
IB
366 actions:
367 - stop_all_actions:
85fdcdb7 368
b798117b 369# Skip wait
85fdcdb7 370 'F4':
b86db9f1 371 description:
85fdcdb7
IB
372 -
373 - Skip
374 - wait
375 include: pink
d4217fda 376 repeat_delay: 0
b798117b
IB
377 actions:
378 - interrupt_wait:
d4217fda
IB
379
380 'F8':
381 description:
382 -
383 - Pause
384 - wait
b798117b
IB
385 actions:
386 - pause_wait:
387
d4217fda
IB
388 'F9':
389 description:
390 -
391 - Unpause
392 - wait
b798117b
IB
393 actions:
394 - unpause_wait:
395
d4217fda
IB
396 'F10':
397 description:
398 -
399 - Reset
400 - wait
b798117b
IB
401 actions:
402 - reset_wait:
85fdcdb7 403
b798117b 404# Changing volume
85fdcdb7 405 'F12':
b58b8220
IB
406 description:
407 -
85fdcdb7
IB
408 - vol+
409 include: yellow
d4217fda 410 repeat_delay: 0
b798117b
IB
411 actions:
412 - volume:
413 delta: true
414 value: +10
415 fade: 0.5
b58b8220 416
85fdcdb7 417 'F11':
b58b8220 418 description:
85fdcdb7
IB
419 -
420 - "vol-"
421 include: yellow
d4217fda 422 repeat_delay: 0
b798117b
IB
423 actions:
424 - volume:
425 delta: true
426 value: -10
427 fade: 0.5
428
429# Seek +- 10 seconds
85fdcdb7 430 'right':
b58b8220 431 description:
85fdcdb7
IB
432 -
433 - +10s
434 include: blue
d4217fda 435 repeat_delay: 0
b798117b
IB
436 actions:
437 - seek:
438 value: 10
439 delta: true
b86db9f1 440
85fdcdb7 441 'left':
16759756 442 description:
85fdcdb7
IB
443 -
444 - -10s
445 include: blue
d4217fda 446 repeat_delay: 0
b798117b
IB
447 actions:
448 - seek:
449 value: -10
450 delta: true