Sustain on the same plugin from one keyboard only

Hi everyone,
first of all, let me say - GigPerformer is the stuff! Music and scripting, that’s my favorite two worlds coming together… I am constantly amazed by the capabilities of this program. Thank you so much, David and the developement team!

So here goes my question. I have a rig with two keyboards, Midi In block for both of them, and then a separate Midi In block for sustain pedal. Say I want to control the same plugin from both keyboards (some splitting and layering are going on in the rackspace, but that’s irrelevant to the use case), but I want the sustain pedal to only work, when I am playing the plugin from Keys 1. And when I am playing this plugin from Keys 2, I don’t want the sustain.

Can anybody think of a workaround for this? Other than having a copy of the plugin with the same settings but no sustain going to it, of course…

Thanks in advance!
Richard

What’s wrong with having a copy of the plugin?

Well I guess nothing really… But two copies would use more CPU than one, wouldn’t they (we’re talking Arturia Mini V3)?

I was just wondering if there was a way to do it without copying the plugin, but after all, as you say, why not.

Are you running out of CPU cycles?

I just use sustain through my keyboard sustain jacks (I think David does it differently). So, in my case I would just filter it out for the keyboard MIDI IN block where I do not want it.

So, you do not get any sustain through the keyboard MIDI IN blocks?

You only get sustain through the “separate Midi In block for sustain pedal”?

If so, why not just only connect that sustain MIDI IN where you have Keyboard 1 connected (to a plugin or midi out). Just do not connect it where the keyboard you do not want it affecting is connected? (I could be missing something).

Or you could “bypass” that MIDI IN block for the sustain pedal and set up a widget if you sometimes want it to apply.

Jeff

Exactly, no sustain through the Midi IN blocks for the keyboards, only the sustain IN block.

I do that in any other time, when I want some plugins to sustain and others left without sustain. But this is a special case where both my keyboards are using the same plugin, I just want notes coming from Keys 1 to sustain and notes from Keys 2 to not sustain. So I cannot just connect the sustain IN block to the plugin, because then notes from both keyboards would sustain.

I think I’m going to go the way of duplicating the plugin, @dhj, I have not (yet) run out of CPU cycles. This will work for now.

Thank you for your input!

1 Like

The problem is that there is no trivial way to distinguish which keyboard is playing. You’d have to capture and track all incoming note on and note off messages from the MIDI In Device and only allow the sustain to pass through if the block that has pending Note On messages and you’d still have a problem if you pressed a note on both keyboards without releasing all notes

Much easier to duplicate the block

This is something that I had thought of but realized it was an unnecessarily complex solution, if not even impossible - and that was the moment I came to the forum to ask. Thanks for all the replies, duplication it is.

If you use the Sustain Scriptlet instead of a real CC64 message it should work.

I have 2 controllers and I’ve always played with 2 sustain pedals – but I realize this is outside of what you want to do.

Me too.

I will definitely try this after my current gig ends and I have more time for trial and error. Thanks!

1 Like