aboutsummaryrefslogtreecommitdiff
path: root/config.yml
blob: 2e89a0f67ec8bd687bff5c5eaf4bbf7f97d2959f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
#################################
##### General configuration #####
## Keep in mind that in-line option override these

#option listed here are the default options.
config:
# debug info
  debug: false
# languages. Available: fr, en
  language: fr
# path to the musics.
  music_path: .
# The awful red message that shows up when you lose the focus
  focus_warning: true
# built-in mixing, try this if your system can't mix the musics by itself
  builtin_mixing: false
# Device used for playing musics. Default value depends on your system
#  device: 
# Advanced parameters: use at your own risk! (your computer probably won't explode, though)
  latency: high
  blocksize: 0
  frame_rate: 44100
  sample_width: 2
  channels: 2




###################
##### Aliases #####

aliases:
# for files
  music1:
    file: "short_blues.mp3"
  music2:
    file: "to_the_Fantasy_war.mp3"
  noise:
    file: "croco.mp3"
# aliases for colors
  blue:
    color: [50, 50, 255]
  orange:
    color: [255, 126, 0]
  yellow: 
    color: [250, 250, 0]
  red:
    color: [255, 20, 20]
  light_blue:
    color: [100, 150, 255]
  green:
    color: [50, 180, 50]
  light_green:
    color: [150, 255, 100]
  purple:
    color: [190, 110, 236]
  pink:
    color: [255, 50, 255]

####################################################
##### Music properties: name and general gain ######

music_properties:
  "short_blues.mp3":
    name: Short Blues (music 1)
  "to_the_Fantasy_war.mp3":
    name: To the Fantasy War (music 2)
  "croco.mp3":
    name: Crocodile noise
    gain: 1.2

###############################################################################
##### Key properties: how do the key look like, and some other properties #####

key_properties:
  'common':
    repeat_delay: 1
    include: blue

  'a':
    description:
      -  
      - Music 1
    include: light_blue
  'z':
    description:
      -  
      - Music 2
    include: light_blue
  'e':
    description:
      - 
      - Noise
    include: light_blue
  'q':
    description:
      -  
      - Load
      - Music 1
    include: light_blue
  's':
    description:
      -  
      - Load
      - Music 2
    include: light_blue
  'd':
    description:
      - 
      - Load
      - Noise
    include: light_blue
  'w':
    description:
      -  
      - Unload
      - Music 1
    include: light_blue
  'x':
    description:
      -  
      - Unload
      - Music 2
    include: light_blue
  'c':
    description:
      - 
      - Unload
      - Noise
    include: light_blue
  't':
    description:
      - 
      - Crossfade
      - music 2
    include: green
    repeat_delay: 5
  'y':
    description:
      - 
      - Stop wait
      - music 2
    include: green

  'g':
    description:
      - 
      - Music 1
      - Seek 30/60
    include: purple

  'i':
    description:
      -
      - Noise
      - +low vol
    include: green

  'h':
    description:
      -
      - Noise
      - 3 times
    include: purple
    repeat_delay: 2

  'm':
    description:
      - 
      - Musics
      - 1 & 2
    include: purple

  'n':
    description:
      -
      - Low vol
      - Up vol
    include: green
  'ù':
    description:
      - 
      - stop
      - wait

  'home':
    description:
      - 
      - vlc
    include: orange


## Some general useful keys

  'ESC':
    description:
      - "!"
      - STOP!
    include: red
    repeat_delay: 0

  'F5':
    description:
      - "||"
      - PAUSE
    include: light_green
    repeat_delay: 0

  'F6':
    description:
      - ">"
      - UNPAUSE
    include: light_green
    repeat_delay: 0

  'F1':
    description:
      -   
      - Stop
      - fade
    include: orange
    repeat_delay: 0

  'F2':
    description:
      - 
      - Stop
      - actions
    include: orange
    repeat_delay: 0

  'F4':
    description:
      -   
      - Skip
      - wait
    include: pink
    repeat_delay: 0

  'F8':
    description:
      - 
      - Pause
      - wait
  'F9':
    description:
      - 
      - Unpause
      - wait
  'F10':
    description:
      - 
      - Reset
      - wait

  'F12':
    description:
      - 
      - vol+
    include: yellow
    repeat_delay: 0

  'F11':
    description:
      - 
      - "vol-"
    include: yellow
    repeat_delay: 0

  'right':
    description:
      - 
      - +10s
    include: blue
    repeat_delay: 0

  'left':
    description:
      - 
      - -10s
    include: blue
    repeat_delay: 0

#################################################################
##### Keys: what do the key actually do when you press them #####

keys:
# Play the songs
  'a':
    - play:
        include: music1
  'z': 
    - play:
        include: music2
  'e':
    - play:
        include: noise

# Load the songs
  'q':
    - load_music:
        include: music1
  's': 
    - load_music:
        include: music2
  'd':
    - load_music:
        include: noise

# Unload the songs
  'w':
    - unload_music:
        include: music1
  'x': 
    - unload_music:
        include: music2
  'c':
    - unload_music:
        include: noise

# Crossfade from any music to music 2
  't':
    - stop:
        fade_out: 5
    - play:
        include: music2
        fade_in: 5

# Fade out, then wait and start music 2
  'y':
    - wait:
        include: music2

# Play the noise, stop music 1, wait a bit then start music 2

# Play music 1, starting at 30 seconds then seeks at 60 after 5 seconds
  'g':
    - play: 
        include: music1
        start_at: 30
    - wait: 
        duration: 5
    - seek:
        include: music1
        delta: false
        value: 60

# Play music 1 and 2, after stopping all musics with a fade_out (and wait for this fade out)
  'm':
    - stop:
        fade_out: 2
        wait: true
    - play:
        include: music1
    - wait:
        include: music1
        set_wait_id: m
    - play:
        include: music2

# skip waiting for the end of music1
  'ù':
    - interrupt_wait:
        wait_id: m

# Lowers the volume of music 1 and 2 (if playing), during the duration of noise + 1 second
  'i':
    - volume:
        include: music1
        value: 50
    - volume:
        include: music2
        value: 50
    - play:
        include: noise
    - wait:
        include: noise
        duration: 1
    - volume:
        include: music1
        value: 100
        fade: 1
    - volume:
        include: music2
        value: 100
        fade: 1

# Lowers the volume of music 1 and 2 (if playing) down to 10% with a 5 seconds fade, then back to 100% 
  'n' :
    - volume:
        include: music1
        value: 10
        fade: 5
    - volume:
        include: music2
        value: 10
        fade: 5
    - wait:
        duration: 5
    - volume:
        include: music1
        value: 100
        fade: 5
    - volume:
        include: music2
        value: 100
        fade: 5

# Stops all musics, then plays noise repeated twice (3 times)
  'h':
    - stop:
        fade_out: 0.5
    - play:
        include: noise
        loop: 2

  'home':
    - run_command:
        command: vlc *.mp3
        wait: true


##### Useful keys (good to have them all the time)

# Emergency stop!
  'ESC':
    - stop_all_actions:
        other_only: true
    - stop:



# Pause and unpause
  'F5': 
    - pause:

  'F6':
    - unpause:

# Stopping all musics, with a short fade (sounds natural)
  'F1':
    - stop:
        fade_out: 1

# Stopping all actions
  'F2':
    - stop_all_actions:

# Skip wait
  'F4':
    - interrupt_wait:

  'F8':
    - pause_wait:

  'F9':
    - unpause_wait:

  'F10':
    - reset_wait:

# Changing volume
  'F12':
    - volume:
        delta: true
        value: +10
        fade: 0.5

  'F11':
    - volume:
        delta: true
        value: -10
        fade: 0.5
  

# Seek +- 10 seconds
  'right':
    - seek:
        value: 10
        delta: true

  'left':
    - seek:
        value: -10
        delta: true