example.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. instructions:
  2. - type: rename port
  3. client_pattern: system
  4. port_pattern: capture_1
  5. new_port_name: capture-1
  6. - type: rename port
  7. client_pattern: system
  8. port_pattern: capture_2
  9. new_port_name: capture-2
  10. - type: rename port
  11. client_pattern: 'system'
  12. port_pattern: 'playback_1'
  13. new_port_name: 'speakers-left'
  14. - type: rename port
  15. client_pattern: 'system'
  16. port_pattern: 'playback_2'
  17. new_port_name: 'speakers-right'
  18. - type: rename port
  19. client_pattern: 'system'
  20. port_pattern: 'playback_3'
  21. new_port_name: 'headphones-left'
  22. - type: rename port
  23. client_pattern: 'system'
  24. port_pattern: 'playback_4'
  25. new_port_name: 'headphones-right'
  26. - type: rename port
  27. client_pattern: 'a2j'
  28. port_pattern: 'Midi Through.*playback'
  29. new_port_name: 'midi-through/midi-in'
  30. - type: rename port
  31. client_pattern: 'a2j'
  32. port_pattern: 'Midi Through.*capture'
  33. new_port_name: 'midi-through/midi-out'
  34. - type: rename port
  35. client_pattern: 'a2j'
  36. port_pattern: 'USB-MIDI.*playback'
  37. new_port_name: 'kawai-vpc1/midi-in'
  38. - type: rename port
  39. client_pattern: 'a2j'
  40. port_pattern: 'USB-MIDI.*capture'
  41. new_port_name: 'kawai-vpc1/midi-out'
  42. - type: rename port
  43. client_pattern: 'a2j'
  44. port_pattern: 'Scarlett 2i4 USB.*playback'
  45. new_port_name: 'scarlett-2i4/midi-in'
  46. - type: rename port
  47. client_pattern: 'a2j'
  48. port_pattern: 'Scarlett 2i4 USB.*capture'
  49. new_port_name: 'scarlett-2i4/midi-out'
  50. - type: rename port
  51. client_pattern: 'a2j'
  52. port_pattern: 'Launchpad Mini 9.*playback'
  53. new_port_name: 'launchpad-mini-9/midi-in'
  54. - type: rename port
  55. client_pattern: 'a2j'
  56. port_pattern: 'Launchpad Mini 9.*capture'
  57. new_port_name: 'launchpad-mini-9/midi-out'
  58. - type: connect ports
  59. client_pattern_1: 'a2j'
  60. port_pattern_1: 'kawai-vpc./midi-out'
  61. client_pattern_2: 'a2j'
  62. port_pattern_2: 'scarlett-.*/midi-in'
  63. - type: connect ports
  64. client_pattern_1: 'a2j'
  65. port_pattern_1: 'scarlett-.*/midi-in'
  66. client_pattern_2: 'a2j'
  67. port_pattern_2: 'scarlett-.*/midi-out'
  68. - type: execute command
  69. client_pattern: 'a2j'
  70. port_pattern: 'kawai-vpc1/midi-out'
  71. events:
  72. - preexisting
  73. - registered
  74. - renamed
  75. command: "jack-smf-recorder \"$HOME/kawai $(date +'%Y-%m-%d %H.%M.%S').mid\" &"