How do I copy parameter value to modifier?

1

I am trying to have Knob 1 on my Midi Controller control the first Parameter of the the device in the selected chain and I can’t get it to switch between chains.

I tried setting up a reaction that copies the value of the Preset Selector to Modifier 1, but it doesn’t work. Knob 1 always controls the first Parameter in the first chain.

Here are the reaction settings:

Here are the settings of Knob 1:

I tried a few things, but I simply don’t know enough to really get how I have to set it up.
Do you have an idea, how I could make this work?

Thank you 🙂

dizzy117 Selected answer as best January 30, 2025
0

Hi,

First off, I’m not a dev.

1. To answer your question

The first parameter of any Device is always the On/Off button. A great reference site made by the Remotify team lists the parameters of all native devices, with their min and max value. Below a screenshot of the parameters of the MIDI Effect Rack, I highlighted the one that’s currently selected in the pictures you provided:

The left most column (Parameter Number) is the number that you should see in between the square brackets [ ] of the line of code that you can read underneath your selections in the Reaction. In the following pictures, I’ve selected the second parameter using the Path Menu, which shows a 1 in between the brackets; this will now listen to changes of Macro 1:

2. An error might occur

On the surface, it would seem everything should work now but you might get an error similar to this one.

The reason for that is that the Device Parameter Value is sent out as a value with a decimal point (which we call a Float in programming) while the chain number needs to be a number without a decimal point (which we call an Integer).

If this occurs, here’s how you can fix it:

– First make sure the correct parameter is selected (see section 1).

– Second, in the dropdown menu of Value To Set, select Custom Code (see pic below).

– As you can see, the line of code with all the selections you’ve made up to this point will be visible in the input field. Place parentheses ( ) around this line of code, and put int in front of everything (on the left side of the code as it is now). Should look like this:

int(self.song().view.selected_track.devices[1].parameters[1].value)

– Save the Reaction.

My guess is everything should work now.

3. An alternative Reaction

Feel free to ignore this section, I just did this for fun and wanted to share it.

I’ve added a Reaction to this comment that won’t use up a Modifier + you won’t need to set up any extra Mappings. It listens to the knob being turned (the one you want to assign to Macro 1 of the selected chain).

It also gets the selected chain’s number through Macro 1 of the second device in the selected track (based on your setup).

For it to work in your setup, you’ll need to make these changes to the Reaction:

  • Select one of your Modes
  • Change the Listener to the one you’re using (knob 1 on my device might send out a different CC or channel)
  • In the second Action, change “Knob 1’s latest value” to that of your Listener
dizzy117 Posted new comment January 30, 2025

Dude…thank you so much!

It works now. Can’t thank you enough.

You’re alternate Reaction is very interesting, too. I’ll look into that.