ModulationReceiverPlugin that allows plugin to receive when the modulation slots A-D (1-4) value changes... with quick hack to WJSendPlugin to wiggle some parameters in response

This commit is contained in:
Tristan Rowley
2020-02-11 23:28:46 +00:00
parent 8c67090cad
commit 44ab20cb52
4 changed files with 38 additions and 7 deletions

View File

@@ -117,8 +117,11 @@ class MidiInput(object):
#if self.data.function_on and "FN_%s"%self.data.control_mode in this_mapping:
# mode = "FN_%s"%self.data.control_mode
#el
#print ("got mapping %s" % this_mapping)
if self.data.control_mode in this_mapping:
mode = self.data.control_mode
elif self.data.display_mode in this_mapping:
mode = self.data.display_mode
#elif self.data.function_on and "FN_DEFAULT" in this_mapping:
# mode = "FN_DEFAULT"
elif 'DEFAULT' in this_mapping:
@@ -130,7 +133,8 @@ class MidiInput(object):
else:
method_name = this_mapping[mode][0]
print('the action being called is {}'.format(method_name))
print('[][][][][ in mode {}, the action being called is {} from message_name {} in control_mode {}'
.format(mode, method_name, message_name, self.data.control_mode))
if mapped_message_value is not None:
norm_message_value = mapped_message_value/127