Can Mainstage Scripter test the state of keys other than the event key ?

I'd like to write a script that checks the pressed state of keys other than the one associated with the event that triggers the script. For example, when C4 is pressed, play two instruments if key C2 is already in a pressed state. There isn't much reference material or many examples that I can see so maybe the community can help ?


Many thanks in advance !

MainStage

Posted on Oct 14, 2016 3:20 AM

Reply
1 reply

Oct 15, 2016 11:50 AM in response to Ferrisfalcon

Another approach I've considered to keep it more event-oriented, is to have C2 temporarily un-mute the second instrument on C4 - so while the C2 is held down, C4 plays two instruments, when C2 is released, C4 goes back to just one.


I'm almost there, in that I've got C2 to fire a CommandChange event on ch1/num16, and I have a control button to mute the instrument strip that's assigned to that event.


The event is firing because I can see a trace on it, but no cigars as the mute button just doesn't seem to be bothered. If I link it to 64 (sustain) it works but then I lose my sustain pedal... :-|

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can Mainstage Scripter test the state of keys other than the event key ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.