I’m new to Bome Midi Translator Pro but not new to coding, music, DAWs or VST Plugins. I have a group of plugins which decode chords either by reacting to a single note from a midi controller to resolve/decode a simple chord or resolving three(3) or more notes and recognizing more complex chords. The plugins play a sample in real-time and is sync’d to the midi clock (not to be confused with MIDI Time Code) based on either the receipt of a single note or a complex chord and there is no option to turn off the single note recognition. I am attempting to write a Bome Project with a “Rule” which will ignore passing a single note and only pass notes when they occur in groups of three(3) or more note on events in the given timeframe of the variable “Window”.
My current issue is with the timer. The timer needs to run in a continuous loop thus it will always have a “Window of Time” to work within. Should the timer be local or global once I have a means of creating the value? The following is not Bome Language but any SW Developer will understand the intent.
With this “Window of Time” I plan to count the note on/off events which exist inside the time designated by the variable “Window”. Once the total of active “note on” events is greater than or equal to three(3), they will be output to the plugin. Note counts in the time variable “Window” equal to or less than two(2) will be ignored.
I’ve also yet to find a function to use which will COUNT the number of times a given function or action occurs.
Any ideas on this would be greatly appreciated,