Cascade/Multiply values of "Expression Pedal" and "Slider" to Control MIDI CC7 Volume

Hi,

I’m using the widget “Expression Pedal” to send CC7 controller messages via MIDI Input Plugin to an external sound module (in my case a Roland Integra 7).

The volume I would like to send via pedal is not always between 0 and 127 (0-100%) but I would like to have the rackspace-individual option to define a range the pedal should act between.

(I know that I have the option to define the curve of the pedal, but it is not convenient to alway jump to do the several edit-steps in a hurry).

Optimum for me would be to have a slider on the on the rackspace panel where I could set the maximum range in percent the pedal should work within.

If I put the slider to

100% : the pedal should act in MIDI 0 to 127
50% : the pedal should act in MIDI 0 to 63
25% : the pedal should act in MIDI 0 to 31

So In fact the MIDI value of the pedal (0 to 127) should be mulitplied with the percentage of the values of the slider.

Is that possible ?

Thanks

Gerhard

1 Like

In GP5 you would have to write a scriptlet to do this

Here’s an example (note that we do not provide official support for developing or supporting user scripts) that scales incoming CC 7 messages - it has a single parameter which specifies a “percentage” between 0.0 and 1.0 and you can map another widget to that parameter

Download this - CC7 Scaler.gpp_internal (1.1 KB)

Here’s how you migh connect it

1 Like

Hi,

I have connected a pedal widget to send CC7 out of the MIDI In port and send it through the CC scaler scriplet to the Integra.
That works fine after changing to the rackspace and physically pressing the pedal gear.

But I can’t get it run to set a specific default value (and send it “scaled” to the Integra) when changing to another rackspace (by changing to another song).

I’ve played around with the settings on the “value” tab of the widget and can’t get a conclusion how it works.
In some cases I see that the Integra is receiving CC7 messages, in most cases nothing happens (sorry, I don’t undertand it …)

What I want to achieve is

  • the pedal widget should be set to a default value on rackspace select or song select

  • this default value should be “scaled” through the scriplet and the result should be sent to the Integra gear at this moment

  • the current state of the pedal gear should not affect that as long I do not press it

  • when I play with the pedal gear, its value should be taken to the widget, scaled and sent to the Integera (that is working perfectly).

May I ask you for help again ?

Thank you very much

Gerhard