diff options
author | cbdev <cb@cbcdn.com> | 2020-09-25 21:30:21 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2020-09-25 21:30:21 +0200 |
commit | 50a73b4dc7032660e0912c91b197b73190c12240 (patch) | |
tree | c3c241a441da1cc19dd3671abb2c7345bc64735d /configs | |
parent | 7d3bde27e412ebb6783c2c94f52a08f0e8d8ba49 (diff) | |
download | midimonster-50a73b4dc7032660e0912c91b197b73190c12240.tar.gz midimonster-50a73b4dc7032660e0912c91b197b73190c12240.tar.bz2 midimonster-50a73b4dc7032660e0912c91b197b73190c12240.zip |
Add some new example configuration
Diffstat (limited to 'configs')
-rw-r--r-- | configs/midi-gamepad.cfg | 25 | ||||
-rw-r--r-- | configs/visca.cfg | 34 |
2 files changed, 59 insertions, 0 deletions
diff --git a/configs/midi-gamepad.cfg b/configs/midi-gamepad.cfg new file mode 100644 index 0000000..f91ed4f --- /dev/null +++ b/configs/midi-gamepad.cfg @@ -0,0 +1,25 @@ +; Play games using a MIDI controller! See https://kb.midimonster.net/usecases/DolphinController.html +; This configuration will create a new input device (a joystick), which is controlled by a MIDI input. +; It could, for example, be used to play games in an emulator. +; This will only work on Linux. + +; This evdev instance will provide the new joystick device +[evdev controller] +; Set up the axis constraints - see the evdev backend documentation for what the parameters mean +axis.ABS_X = 34300 0 65536 255 4095 +axis.ABS_Y = 34300 0 65536 255 4095 +relaxis.REL_X = 65535 +; Set the output device name and enable the instance for output +output = MIDIMonster + +; This midi instance will be used as input to control the new joystick +[midi lc] +read = Launch Control + +[map] +; Use two CC's/rotaries to control the main joystick +lc.ch0.cc0 > controller.EV_ABS.ABS_X +lc.ch0.cc1 > controller.EV_ABS.ABS_Y +; Use two buttons to control the joystick buttons +lc.ch0.note0 > controller.EV_KEY.BTN_A +lc.ch0.note1 > controller.EV_KEY.BTN_B diff --git a/configs/visca.cfg b/configs/visca.cfg new file mode 100644 index 0000000..ac4b7a3 --- /dev/null +++ b/configs/visca.cfg @@ -0,0 +1,34 @@ +; This configuration controls a simple VISCA-capable Pan/Tilt/Zoom (PTZ) +; camera over the network via OSC (For example the "Mix 16" layout shipped +; with TouchOSC). + +[backend osc] +; Turn on the detect option to see what comes in +detect = on + +[visca cam] +; This is where we can reach the camera control server +connect = 10.23.23.127 5678 + +[osc touch] +; Bind a local OSC server to which TouchOSC will connect +bind = 0.0.0.0 8000 + +[map] +; Map the XY-pad to camera pan and tilt +touch./1/xy > cam.tilt +touch./1/xy:1 > cam.pan + +; Map control speeds +touch./1/fader1 > cam.panspeed +touch./1/fader2 > cam.tiltspeed + +; Map zoom to a fader +touch./1/fader4 > cam.zoom + +; Map some presets +touch./1/push1 > cam.home +touch./1/push2 > cam.memory1 +touch./1/push3 > cam.memory2 +touch./1/push4 > cam.store1 +touch./1/push5 > cam.store2 |