Code:
-- grid controller pads
add_grid_control(0, 0, 1, "note", 36)
add_grid_control(0, 1, 1, "note", 37)
add_grid_control(0, 2, 1, "note", 38)
add_grid_control(0, 3, 1, "note", 39)
add_grid_control(1, 0, 1, "note", 40)
add_grid_control(1, 1, 1, "note", 41)
add_grid_control(1, 2, 1, "note", 42)
add_grid_control(1, 3, 1, "note", 43)
add_grid_control(2, 0, 1, "note", 44)
add_grid_control(2, 1, 1, "note", 45)
add_grid_control(2, 2, 1, "note", 46)
add_grid_control(2, 3, 1, "note", 47)
add_grid_control(3, 0, 1, "note", 48)
add_grid_control(3, 1, 1, "note", 49)
add_grid_control(3, 2, 1, "note", 50)
add_grid_control(3, 3, 1, "note", 51)
-- non grid controls
that should just be in devices/mpd32.lua which tells midimasher what midi your controller uses.
Code:
--
-- virtual midifighter using a akai mpd32
--
open_midi_device("traktor", "traktor", "MIDIOUT2 (Akai MPD32)", "MIDIIN2 (Akai MPD32)", 2);
open_midi_device("mpd32", "mpd32", "Akai MPD18", "", 2);
open_midi_device("midifighter1", "generic", "MidiFighter1 Input", "MidiFighter1 Output")
virtual_midifighter_4banks("mpd32", 0, "midifighter1", 0, 0, 127, 0)
i may have got those mpd port names wrong. also, running debug.bat instead of midimasher.bat will dump out any errors warnings that it finds.
Bookmarks