is it recommended to have midiout of script only of the size of needed events?
In short - yes.
And unless you for some reason want to resend the same message(s) in each block, the MIDI array length should be zeroed within the next block or changed to the length of the new messages.
The good thing is that you can do your things and fill the array from index 0 and up within a block and only when you're finished filling in the data you have to set the length. Typically you set the length within Process, whether it's 0 or something else. Take a look at some of the MIDI scripts in the distro - many of them are done this way.
[edit] BTW, if you have filled the array with a number of messages and you then overwrite from 0 but not with as many messages as the previous number, I'm pretty sure the old messages still exist, but as long as the length is set correctly it doesn't matter.Statistics: Posted by bsork — 19 Sep 2010, 22:00
]]>