Momentary button to send effect with max value

3.00K viewsCSS Questions
0

I have a momentary button and I wanna send my send1 to max value (127). I also have a Knob1 that controls the send1. But additionally I want to have a that momentary button. For some reason I can’t manage to send the value of the send1 to max when pressed.

I tried with reaction, but without success (but maybe there is a easier way):

Listener: Button 1o was pressed
Action Block1:
Condition: Button 10 latest velocity value is equal – 127
Action: MIDI Controller – send MIDI velocity value to Controller input Knob1 Value 127
Action Block2:
Condition: Button 10 latest velocity value is not equal – 127
Action: MIDI Controller – send MIDI velocity value to Controller input Knob1 Value 0

Maybe it’s wront to send the velocity value to Knob1, but I couldn’t find an option how to set the send1 directly.

Any ideas on how I can achieve this?
Any help is appreciated

Rouz Answered question
Attached Files:
0

Yo Glenn, you are a legend man 🙂

I moved your user.py to my script folder and changed these lines:

buttons= {
  1 : self.c_instance.midi_cc_ch_1_val_61,
  2 : self.c_instance.midi_cc_ch_1_val_62,
}

Then I created a simple reaction (global mode) with 2 button pressed listeners for those 2 buttons and an action code with:
self.user.full_on_press_reset_on_release(reaction_listener_number)
Wasn’t sure if I need to place an exit as well..?

In Ableton I get no changes in the send value when I press the button. I get these logs (twice) for every button press:

LISTENER NUMBER >>> 1

(test) There’s a problem with ‘Action Block 1’ in reaction ‘send to maxxx’ (from ‘Button 10 was pressed’ listener) >>> ‘css_trynew’ object has no attribute ‘midi_cc_ch_1_val_61’


Listener number is correct. It seems it does not find the referenced button, but in the app Button 10 shows (CC/1/61). Should be correct, right?

Rouz Edited answer
You are viewing 1 out of 16 answers, click here to view all answers.