Welcome to %s forums

BrainModular Users Forum

Login Register

Need something like a MidiCreate for Arrays

I need help on a Patch
Post Reply
hesspet
Member
Posts: 92
Location: Germany
Contact:

Unread post by hesspet » 10 Dec 2012, 22:19

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
+++ journeytounknownsoundscapes.blogspot.de +++
+++ DIY electronics +++ musical experiments +++ light experiments +++

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 10 Dec 2012, 22:31

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.
Bjørn S

hesspet
Member
Posts: 92
Location: Germany
Contact:

Unread post by hesspet » 10 Dec 2012, 23:00

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 :-)
+++ journeytounknownsoundscapes.blogspot.de +++
+++ DIY electronics +++ musical experiments +++ light experiments +++

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 11 Dec 2012, 00:27

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!!

hesspet
Member
Posts: 92
Location: Germany
Contact:

Unread post by hesspet » 11 Dec 2012, 11:09

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
+++ journeytounknownsoundscapes.blogspot.de +++
+++ DIY electronics +++ musical experiments +++ light experiments +++

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 12 Dec 2012, 23:03

cool ;) think i will soon dive into arduino world.

hesspet
Member
Posts: 92
Location: Germany
Contact:

Unread post by hesspet » 12 Dec 2012, 23:14

+++ journeytounknownsoundscapes.blogspot.de +++
+++ DIY electronics +++ musical experiments +++ light experiments +++

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests