update default midi map

This commit is contained in:
langolierz
2020-03-01 17:56:55 +00:00
parent fe3c853f5b
commit 2b62f763df
2 changed files with 51 additions and 29 deletions

View File

@@ -1,31 +1,52 @@
{
"control_change 0": {
"DEFAULT": ["set_the_shader_param_0_layer_offset_0_continuous","set_strobe_amount_continuous"],
"NAV_DETOUR": ["set_detour_mix_continuous"]
"NAV_DETOUR": ["set_detour_speed_position_continuous"],
"NAV_WJMX": ["wj_set_position_N:x"],
"NAV_MANI": ["set_variable_A"],
"NAV_LPRC": ["set_automation_speed"],
"NAV_LFO": ["set_lfo_modulation_0_level"],
"NAV_SND": ["sound_set_config_energy_gain"]
},
"control_change 1": {
"DEFAULT": ["set_the_shader_param_1_layer_offset_0_continuous","set_shader_speed_layer_0_amount"],
"NAV_DETOUR": ["set_detour_speed_position_continuous"]
"NAV_DETOUR": ["set_detour_start_continuous"],
"NAV_WJMX": ["wj_set_position_N:y"],
"NAV_MANI": ["f:sin(x*pi):|set_variable_SIN"],
"NAV_LFO": ["set_lfo_modulation_1_level"],
"NAV_SND": ["sound_set_config_energy_threshold"]
},
"control_change 2": {
"DEFAULT": ["set_the_shader_param_2_layer_offset_0_continuous","set_shader_speed_layer_1_amount"],
"NAV_DETOUR": ["set_detour_start_continuous"]
"NAV_DETOUR": ["set_detour_end_continuous"],
"NAV_WJMX": ["wj_set_colour_T:x"],
"NAV_LFO": ["set_lfo_modulation_2_level"]
},
"control_change 3": {
"DEFAULT": ["set_the_shader_param_3_layer_offset_0_continuous","set_shader_speed_layer_2_amount"],
"NAV_DETOUR": ["set_detour_end_continuous"]
"NAV_WJMX": ["wj_set_colour_T:y"],
"NAV_LFO": ["set_lfo_modulation_3_level"]
},
"control_change 4": {
"DEFAULT": ["set_the_shader_param_0_layer_offset_1_continuous"]
"DEFAULT": ["set_the_shader_param_0_layer_offset_1_continuous","set_param_0_layer_offset_0_modulation_level_continuous"],
"NAV_WJMX": ["wj_set_mix","wj_set_current_modulation_slot_0_level"],
"NAV_LFO": ["set_lfo_speed"],
"NAV_SND": ["sound_set_modulation_energy_slot_0_level"]
},
"control_change 5": {
"DEFAULT": ["set_the_shader_param_1_layer_offset_1_continuous"]
"DEFAULT": ["set_the_shader_param_1_layer_offset_1_continuous","set_param_1_layer_offset_0_modulation_level_continuous"],
"NAV_WJMX": ["wj_set_back_colour:h","wj_set_current_modulation_slot_1_level"],
"NAV_SND": ["sound_set_modulation_energy_slot_1_level"]
},
"control_change 6": {
"DEFAULT": ["set_the_shader_param_2_layer_offset_1_continuous"]
"DEFAULT": ["set_the_shader_param_2_layer_offset_1_continuous","set_param_2_layer_offset_0_modulation_level_continuous"],
"NAV_WJMX": ["wj_set_back_colour:s","wj_set_current_modulation_slot_2_level"],
"NAV_SND": ["sound_set_modulation_energy_slot_2_level"]
},
"control_change 7": {
"DEFAULT": ["set_the_shader_param_3_layer_offset_1_continuous"]
"DEFAULT": ["set_the_shader_param_3_layer_offset_1_continuous","set_param_3_layer_offset_0_modulation_level_continuous"],
"NAV_WJMX": ["wj_set_back_colour:v","wj_set_current_modulation_slot_3_level"],
"NAV_SND": ["sound_set_modulation_energy_slot_3_level"]
},
"control_change 8": {
"DEFAULT": ["set_the_shader_param_0_layer_offset_2_continuous"]
@@ -42,6 +63,7 @@
"control_change 12": {
"DEFAULT": ["set_strobe_amount_continuous"]
},
"note_on 72": {
"NAV_BROWSER": ["move_browser_selection_up", "move_browser_selection_page_up"],
"DEFAULT": ["seek_back_on_player", "decrease_seek_time"],

View File

@@ -55,7 +55,7 @@ class OscInput(object):
# this is for accepting any old osc message to allow binding of modulation to osc messages
# TODO: make configurable?
this_dispatcher.map("/*", self.on_param_osc_input)
#this_dispatcher.map("/*", self.on_param_osc_input)
osc_server.ThreadingOSCUDPServer.allow_reuse_address = True
server = osc_server.ThreadingOSCUDPServer((server_args.ip, server_args.port), this_dispatcher)