I’m using Midi Chords vst to play a harmony line from a monophonic source (EWI). It’s all good but I need to invoke the #7 Rack State in Midi chords on the 4th time I play a note. In this example it’s note 53 - F3. I’m wondering if the new bindings provide a way to do that?
And if so, what do I modify if I want to invoke on 2nd or 3rd time a note is played?
One idea I can think off is to use the song states to achieve this. Example:
song states one thru three has the above binding disabled and has the binding enabled in song state 4
the source of the binding is used to make another binding that has the target set to “next state” for the first 3 song states and is disabled in state 4
So basically the song state change binding is enabled in the first 3 song states and the binding for the rack state change is disabled. When you hit the note the first 3 times it advances the song state and that binding is disabled when you reach the 4th song state. The rack state change binding is then enabled in the 4th song state and triggers when the note is played changing the rack state. I hope this makes sense but let me know if you need more detail. There is a good chance there are other ways to get there but this was the first idea I thought of.
Cheers,
Dave
ADDENDUM:
This can also be done using a cc number in the onscreen keyboard buffer for storage of the key strike count. It doesn’t require song states to work.
1st binding sets key strike count to zero on song load
2nd binding increments the key strike count by 1 till it reaches count of 2. The first strike is value 0 to 1 and the second strike is value 1 to 2. Since the condition is set to <=2 in the expression the binding allows another key strike increments the counter to 3. At this point the counter is stopped at a value of 3 even if more strikes come in.
The 3rd binding is allowed to trigger the rack state change when the value of the cc in onscreen = 3 and after triggering it ignores any more key strikes that might re-trigger the binding by setting the Fire option in the mapping to “When Condition Becomes True”.
Thanks Dave, brilliant …I had not thought of that! I do think I get a very brief interruption in the audio engine on this particular song when changing states. But I will give it a try. Off the top of my head, I might be able to do that with rack states and avoid the audio interruption. Thanks!
Tom