Momentary button to send effect with max value

3.08K 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

Ah, now I see. What you mean by channel is the mixer_device of a Track. As you can see here, self.song().tracks[0].mixer_device.sends[0], each track has its own mixer_device. If you want to access sends from other tracks you just have to change the index of tracks in that line of code.

If you use the UI from CSS to select a send, like you did in the pictures you posted here, and then use the path menu, you’ll find different options that you can select for track number when you click on the downwards pointing arrow next to the input field (e.g. selected_track). Once you’ve selected an option, you’ll see the code that’s used, which you can then use within your own Custom Code.

Is it possible to add the full code (including the button listeners) to users.py file?

I’m pretty sure you can just create a method in the user.py file, copy the code inside that method and then just call self.user.method() within the Action of a Reaction to access it. Although, if you’re going to use the listener_number inside the code, then you should insert that as an argument into the method, self.user.method(listener_number).

Out of curiosity, what kind of MIDI Controller do you want to use for this?

Glenn V. Changed status to publish
You are viewing 1 out of 16 answers, click here to view all answers.