Page 1 of 1

Posted: 10 Dec 2012, 22:19
by hesspet
Hello,

maybe it still exists, but I've tomatos on my eyes.

I need a sort of a module like the "midi create" for arrays or a way how to retrigger the sending of an array. The array editor send everytime when I change a value a new array but I need a "first fill and send on demand" logic to have atomar change on all fields at the same time.

Is there's a way to do this with a patch or should I write a script (I know how to do this) but I would like to do this with the modules :-) (and learn something)

To understand the usage:

I'm testing a new born Serial module and I like to implement a protocol which must send 3 bytes. It makes no sense to send the bytes one after an other, cause this underruns the idea of a Serial send buffer and needs 3 times more cpu load than sending a array with a "record". Works perfect with the array editor but I can't manage the retrigger technic.

You know ....tomatos... :-)

Thanks, Peter

Posted: 10 Dec 2012, 22:31
by bsork
You could for instance try a Pass Event or a Stop Event module after the array. They are the opposite of each other, so which one is best, depends what other logic you have around in the patch. With either, you can make sure that no data is passed on until some condition is met.

Posted: 10 Dec 2012, 23:00
by hesspet
Hello,

Thanks, I'll try it. I never used this modules before. For the first time I found an other solution which gives also a good result:

Image

(The green chain gang :-) )

Maybe not the best way, but it works :-)

Posted: 11 Dec 2012, 00:27
by 23fx23
yup, but you should try only one array with pass as bsork said, will be lighter on cpu than 3set array (not that it's high actually, but better take good habits ;) ) btwn this serial arduino thing looks so sexy!!

Posted: 11 Dec 2012, 11:09
by hesspet
It is sexy.

I will post the module soon as possible. The current version has some smal bugs in high pressure situations, but it works under nomal conditions. I'll try to implement a little bit of the Firmata protocol, so the Arduino guys will have a lot of fun with it.

To solve the array buffering part, I decided to write my own CreateArray Module in C++ to get the maximum performance :-)

Peter

Posted: 12 Dec 2012, 23:03
by 23fx23
cool ;) think i will soon dive into arduino world.

Posted: 12 Dec 2012, 23:14
by hesspet