From 9c29ca89b638194f5771c22fadf6bf490d4595a3 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 9 Jan 2019 23:57:47 +0100 Subject: [PATCH] Add an example Futatabi MIDI mapping for the Behringer CMD PL-1. --- futatabi/behringer_cmd_pl1.midimapping | 38 ++++++++++++++++++++++++++ meson.build | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 futatabi/behringer_cmd_pl1.midimapping diff --git a/futatabi/behringer_cmd_pl1.midimapping b/futatabi/behringer_cmd_pl1.midimapping new file mode 100644 index 0000000..ade7595 --- /dev/null +++ b/futatabi/behringer_cmd_pl1.midimapping @@ -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 } diff --git a/meson.build b/meson.build index ac82c3e..db1422c 100644 --- a/meson.build +++ b/meson.build @@ -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()) -- 2.39.2