]> git.sesse.net Git - nageru/commitdiff
Add an example Futatabi MIDI mapping for the Behringer CMD PL-1.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 9 Jan 2019 22:57:47 +0000 (23:57 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 10 Jan 2019 18:19:51 +0000 (19:19 +0100)
futatabi/behringer_cmd_pl1.midimapping [new file with mode: 0644]
meson.build

diff --git a/futatabi/behringer_cmd_pl1.midimapping b/futatabi/behringer_cmd_pl1.midimapping
new file mode 100644 (file)
index 0000000..ade7595
--- /dev/null
@@ -0,0 +1,38 @@
+# Example mapping for the Behringer CMD PL-1. Like akai_midimix.midimapping
+# for nageru, this one is written by hand, and serves as a simple example
+# of the basic features. The PL-1 is a DJ controller, not a dedicated slow
+# motion controller, but it's also something like 1/20th the price of one.
+# Thus, while the mappings may be slightly confusing, it has basically
+# everything we need to do efficient slow motion control.
+
+# The jog wheel.
+jog: { controller_number: 31 }
+
+# 1-8 buttons logically switch camera.
+camera: { button: { note_number: 16 } is_current: { note_number: 16 } }
+camera: { button: { note_number: 17 } is_current: { note_number: 17 } }
+camera: { button: { note_number: 18 } is_current: { note_number: 18 } }
+camera: { button: { note_number: 19 } is_current: { note_number: 19 } }
+camera: { button: { note_number: 20 } is_current: { note_number: 20 } }
+camera: { button: { note_number: 21 } is_current: { note_number: 21 } }
+camera: { button: { note_number: 22 } is_current: { note_number: 22 } }
+camera: { button: { note_number: 23 } is_current: { note_number: 23 } }
+
+# Play is naturally mapped to the play button.
+play: { note_number: 35 }
+play_enabled: { note_number: 35 }
+
+# Queue is marked to Cue; close enough.
+queue: { note_number: 34 }
+queue_enabled: { note_number: 34 }
+
+# Cue in and out are mapped to Sync and Tap.
+cue_in: { note_number: 32 }
+cue_in_enabled: { note_number: 32 }
+cue_out: { note_number: 33 }
+cue_out_enabled: { note_number: 33 }
+
+# Preview is mapped to Scratch. It doesn't really feel right,
+# but it's also unclear where else it would be.
+preview: { note_number: 27 }
+preview_enabled: { note_number: 27 }
index ac82c3ea1a1fb2d8f0f78fdecd166f4af28cc921..db1422c90ce698e159302f3654151b8c1431010d 100644 (file)
@@ -257,7 +257,7 @@ executable('kaeru', 'nageru/kaeru.cpp',
 executable('benchmark_audio_mixer', 'nageru/benchmark_audio_mixer.cpp', dependencies: nageru_deps, include_directories: nageru_include_dirs, link_with: [audio, aux])
 
 # These are needed for a default run.
-data_files = ['nageru/theme.lua', 'nageru/simple.lua', 'nageru/bg.jpeg', 'nageru/akai_midimix.midimapping']
+data_files = ['nageru/theme.lua', 'nageru/simple.lua', 'nageru/bg.jpeg', 'nageru/akai_midimix.midimapping', 'futatabi/behringer_cmd_pl1.midimapping']
 install_data(data_files, install_dir: join_paths(get_option('prefix'), 'share/nageru'))
 foreach file : data_files
        run_command('ln', '-s', join_paths(meson.current_source_dir(), file), meson.current_build_dir())