Save the position of the pressed drum pad

2.90K viewsCSS Questions
0

Hello! I’ve been trying this for a few days and I’m not able to. I hope you can help me.

I would like to save in a modifier the number corresponding to the last drum pad pressed. The reason is that I have an encoder, which depending on which drum pad is pressed, will do a different thing (it will change different modes according to a modifier).

In summary. A modifier with the numbers 1 to 16 according to the last drum pad that was pressed in a drum rack (Kick, Rim, Snare, HH …)

THANK YOU!

admin Changed status to publish
Attached Files:
0

I’m not 100% sure on the code for selected chain but if it exists, you’re close, but missing a full stop before ‘view’
Try this: self.song().tracks[0].devices[0].view.selected_chain.devices[0].parameters[0].value = self.midi_cc_ch_0_val_16.cur_val

admin Changed status to publish
Attached Files:
You are viewing 1 out of 21 answers, click here to view all answers.