How *exactly* do 'On MIDI' executed scripts work?
Posted: 30 Dec 2013 01:17
/*edit*/
Nevermind, I'm an idiot. As expected, These scripts will fire once per each midi signal, it will not cluster them as I had feared.
I was calling a function that generated an array, the function had a for loop in it that was overwriting the previous array updates when it was called a second time.
/*edit*/
Hi gang, long time...
So I've got a range of notes (E4 to G9, or 64 to 127), on a range of channels (11- 14) that I have my software sending output information on. I would like to listen to each of these notes individually, each of these 256 notes (64 notes times 4 channels) will communicate one of four states, its important that I get each one individually. Seemingly, the software will sometimes send updates for more than one of these notes at a time, or at least so close to one another that the following script only picks up the velocity of the highest note value; if E4 and F4 both change, the following script will only execute for F4...
Is this the nature of an On MIDI script? Does it fire only once per incoming message that matches the conditions?.. or is this some kind of latency issue?
What are my conceivable options, other than writing 256 individual midi listeners?
Also, I've just dinked around a bit and tried changing Note On to Key Pressure, as well as Channel Pressure, but it appears that the software is not outputting anything for either of these...
Thanks.
Nevermind, I'm an idiot. As expected, These scripts will fire once per each midi signal, it will not cluster them as I had feared.
I was calling a function that generated an array, the function had a for loop in it that was overwriting the previous array updates when it was called a second time.
/*edit*/
Hi gang, long time...
So I've got a range of notes (E4 to G9, or 64 to 127), on a range of channels (11- 14) that I have my software sending output information on. I would like to listen to each of these notes individually, each of these 256 notes (64 notes times 4 channels) will communicate one of four states, its important that I get each one individually. Seemingly, the software will sometimes send updates for more than one of these notes at a time, or at least so close to one another that the following script only picks up the velocity of the highest note value; if E4 and F4 both change, the following script will only execute for F4...
Is this the nature of an On MIDI script? Does it fire only once per incoming message that matches the conditions?.. or is this some kind of latency issue?
What are my conceivable options, other than writing 256 individual midi listeners?
Also, I've just dinked around a bit and tried changing Note On to Key Pressure, as well as Channel Pressure, but it appears that the software is not outputting anything for either of these...
Thanks.