Selected Parameter with MIDI Feedback (not working in Device View)
Hello,
I’m working on setting up a “Selected Parameter” control for my MIDI Fighter Twister, and here’s what I have so far:
Current Mapping
Listener Setup (Knob 25 was turned)
self.song().view.add_selected_parameter_listener
Actions:
1.Send MIDI for LED Ring Update:
self.midi_cc_ch_0_val_12.send_value(
self.get_value_from_ranges(
False, 127, False,
self.song().view.selected_parameter.value,
self.song().view.selected_parameter.min,
self.song().view.selected_parameter.max,
2, 0, 127, 2, False
)
)
2.Send Value to Parameter:
self.song().view.selected_parameter.value = self.get_value_from_ranges(
False, 127, False,
self.midi_cc_ch_0_val_12.cur_val,
0, 127, 2,
self.song().view.selected_parameter.min,
self.song().view.selected_parameter.max, 2, False
)
Problem Description
When I select parameters like Track Sends, everything works as expected:
•The LED ring updates when switching parameters.
•The knob functions as intended, with LED ring feedback.
Issue: When selecting parameters within Device View, the LED ring doesn’t update correctly. Although turning the knob changes the parameter value, it doesn’t pick up the last value accurately.
I’d also like to set up a second knob that always controls the previously selected parameter. I’m not entirely sure how to go about storing these values in lists, so any pointers to get started would be greatly appreciated!
Thank you in advance!
hmm, controlling a previously selected parameter might be possible if you save the selected parameter object
self.song().view.selected_parameter
to a modifier, maybe you could use a button which triggers this to be stored.
Then in the action section of the action block, switch to custom code and change this part:
self.song().view.selected_parameter.value
to the modifier:
self.get_modifier_value("m1")
You would need 2 instances of the original selected parameter mapping.
1. the code for the first one would remain the same, simply select the knob to control it
2. the second one will be edited as above and use a different knob.
3. You would also need a button to do what I mentioned above to store the selected parameter object to modifier.
Note. I’m not 100% sure if this would work, so would require testing.
Sign up
User registration is currently not allowed.