Controlling a *selected* chain’s volume, pan and sends
I can’t figure out how to control a selected chain’s volume, pan and sends inside a drum rack. I want it to work just like the ease of making a script of selecting a regular track and controlling these parameters. Is this possible?
I tried making a few Reactions that do what you wanted. I tested them with a MIDI Fighter Twister. If you’re using a different controller, you’ll need to check inside the Reaction if the correct MIDI channel and value are assigned (see the included .png).
The chain’s parameters you want to control (volume, panning, sends) are inside the mixer_device of a Chain. In the Reaction I access the mixer_device as follows:
self.song().view.selected_track.view.selected_device.view.selected_chain.mixer_device
So, the mixer_device parameters of the selected Chain of the selected Device of the selected Track will be affected by the changes you make with the assigned MIDI Controls.
I haven’t looked at Sends yet, maybe later.
If you’re having issues with the script or want something done different, feel free to let me know.
I’m new to CSS but I downloaded your script and put in the right channels and values in the reaction text. Selected my midi controller and slider. The script says that a mode is missing, so I just created a mode but I’m not sure if that how to go about it. It’s not working sadly. I recorded a video of what I did (3 minutes) (ignore the fact that I chose the same slider for controlling both volume and pan:
https://www.youtube.com/watch?v=l4SKgSCSJUs
Is your script able to with two buttons only to control the panning and volume of any drum rack chain you select? And thanks for the help btw 😀
As long as they are the same mode, it doesn’t matter. But now I know that I should probably select the mode as well for export, so that’s helpful.
When you change the channel, you need to subtract 1 from the number that’s displayed when hovering over your control. For example: when your slider shows “Channel 15, Value 4” when hovering over it, so the code needs to be like follows:
midi_control = self.midi_cc_ch_14_val_4
There’s a reminder (see picture) above that line of code about this.
The controller I set this script up with uses endless encoders, so I’ll need to adjust the script a bit for your use-case. Would you mind sharing the control type (button, slider, ….) + their MIDI channel and value + what function you want them to have (example: slider for volume, button for pan left, …).
If you also send me the Template you are using, I can set up the Listeners as well.
What MIDI Controller are you using by the way?
I understood your reminder this time thanks. I just use two sliders.
“Slider 3” for volume: CC/15/3
“Slider 4” for panning: CC/15/4
Sign up
User registration is currently not allowed.