e58f06d9fa
Stripped upstream git history; starting point for replacing the native SWELL/Win32 mapping UI with something more suited to bulk editing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
35 lines
1.4 KiB
Lua
35 lines
1.4 KiB
Lua
--- name: Midi Fighter Twister - Numbered
|
|
--- realearn_version: 2.16.0-pre.8
|
|
--- author: helgoboss
|
|
--- device_manufacturer: DJ TechTools
|
|
--- device_name: Midi Fighter Twister
|
|
--- description: |
|
|
--- This controller preset exposes the push encoders of the Midi Fighter Twister with the "numbered" scheme, which means
|
|
--- it uses virtual element IDs such as button 5 or knob 3. This makes it compatible with main presets that are
|
|
--- built for generic controllers that have a row of buttons and knobs.
|
|
--- setup_instructions: |
|
|
--- The Midi Fighter Twister is a very customizable controller. Please follow the instructions at
|
|
--- https://github.com/helgoboss/helgobox/blob/master/doc/controllers.adoc#dj-techtools-midi-fighter-twister
|
|
--- to make it ready for ReaLearn.
|
|
--- midi_identity_pattern: F0 7E ? 06 02 00 01 79 05 00 01 00 * F7
|
|
--- provided_schemes: [djtechtools/midi-fighter-twister/numbered, numbered]
|
|
|
|
--!strict
|
|
|
|
local realearn = require("realearn")
|
|
local commons = require("djtechtools/midi-fighter-twister-lib/preset-common")
|
|
|
|
return commons.create_compartment {
|
|
create_push_target = function (col, row)
|
|
return realearn.Target.Virtual {
|
|
id = row * 4 + col,
|
|
character = "Button",
|
|
}
|
|
end,
|
|
create_turn_target = function (col, row)
|
|
return realearn.Target.Virtual {
|
|
id = row * 4 + col,
|
|
character = "Multi",
|
|
}
|
|
end,
|
|
} |