Code:
open_midi_device("traktor", "traktor", "Traktor to MM", "MM to Traktor");
open_midi_device("djm101", "djm101", "DJM_101", "DJM_101");
faderfx_a = toggle_modifier("djm101", "pfl_a", 0, ON, OFF, nil, function(d, e, v, p)
if v > 0 then send("traktor", "dry_wet_group_unit_1", 0) end
send("traktor", "effect_unit_1_on_a", v)
end)
faderfx_b = toggle_modifier("djm101", "pfl_b", 0, ON, OFF, nil, function(d, e, v, p)
if v > 0 then send("traktor", "dry_wet_group_unit_1", 0) end
send("traktor", "effect_unit_1_on_b", v)
end)
pipe_shift("djm101", "volume_fader_a", 0, "traktor", "volume_fader_a", "dry_wet_group_unit_1", faderfx_a, 0, { cb_shift = invert_value_cb})
pipe_shift("djm101", "volume_fader_b", 0, "traktor", "volume_fader_b", "dry_wet_group_unit_1", faderfx_b, 0, { cb_shift = invert_value_cb})
this just adds a faderfx toggle button for each deck (on the only two buttons the djm101 has available) and uses the main volume faders
Bookmarks