Welcome to %s forums

BrainModular Users Forum

Login Register

matrix challenge

I need help on a Patch
Post Reply
soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 03 Nov 2010, 03:20

I am in need of help from a matrix master. What I am trying to do is take one matrix of a 8*8 length and to "concat" it into another matrix of 32*8 so that each copy of the first matrix sits consecutively one after the other within the second. To do this with a simple array is quite easy by just using the concat module but trying this with the matrix yields different results and I have not determined how to duplicate the pattern horizontally. It appears to progresses from top to bottom when concating? Any advices are welcome. Thanks.

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 03 Nov 2010, 10:49

After dissecting the example get and set patches included in the matrix pack I have found a solution. But unfortunately every duplicated col requires a separate patch. Anyone know how to make the matrix behave as if it was numbered vertically so concated matrices will line up horizontally?

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 03 Nov 2010, 10:53

yes, i was ready to post about those examples..,( curious to see how you solve this btw ) but i suppose a script is needed here to simplify the process but can't help with this ..i suppose 23fx is the matrix script boss...:)

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 03 Nov 2010, 11:01

Thanks for the interest,

Here is the wkp. My main concern is the amount of patches needed to accomplish this when it works perfectly fine when concating vertically.

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 03 Nov 2010, 11:23

whaoo, congrats ! really well done, I've to study that
thanks to share

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 03 Nov 2010, 13:48

hi soundmind,
soundmind wrote:Thanks for the interest,

Here is the wkp. My main concern is the amount of patches needed to accomplish this when it works perfectly fine when concating vertically.
Unfortunatly, datas are stored by row in the matrix array, resulting in more operation complex when manipulating row length. If it was stored by col, it would be more simple for row, but more complex for col :|

here a little simplification with same result
Image

but this is clearly a job to do by script, witch can make this task easily modular and expendable in addition of eating less CPU.

hope it help
Martin FLEURENT - Usine Developer - SDK maintainer

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 03 Nov 2010, 19:38

That looks a lot simpler. Thanks for the help. I have not even started to understand how to script in usine yet but I will soon try. In the meantime maybe the script boss can help.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 03 Nov 2010, 19:52

sorry i missed the post.

im not the script boss lol, martin, bsork or senso are, but ive played for a while with matrix and scripts, as martignasse was
right, scripting comes soon necessary with mx manipulations, as the example above.
i run out of time for now, but maybe i can make a script that do this as exemple for tomorrow evening..could help?

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 03 Nov 2010, 20:17

hehe,

here it is :)

not fully tested, but work well for what you need.
Martin FLEURENT - Usine Developer - SDK maintainer

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 03 Nov 2010, 20:25

martignasse,
thanks for all the help. I have not tested the script yet but in your patch simplification I have gotten great results. Ive discovered that using the swap array i can fully rotate the matrix. For virtical "flip" I use the "get col" method and for horizontal "swap" use the "get row". I will check the script.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 03 Nov 2010, 20:30

Hehe speedy martin gonzales. ;)

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 03 Nov 2010, 20:31

love your script Martin , hypnotic !

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 03 Nov 2010, 20:39

martin you mastered it with that script! thanks a lot. I especially like the user definable matrix size. Now this can be adapted for any purpose. great job!

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 03 Nov 2010, 21:11

@soundmind:
yep, it's the power of scripting vs patching, make things really modular and expandable ;)

@nay-seven:
haha, can't imagine what you'll do with this script :D

@23fx23:
...when i'm not to short in time...
Martin FLEURENT - Usine Developer - SDK maintainer

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 04 Nov 2010, 09:03

yep, martin, a little idea here
A wavefile triggering counters, random pitch, colors and colomn/row number of the matrix.......sixties visual effect....

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 04 Nov 2010, 17:26

i just can say... WOooOW

like the soundtrack too :)
Martin FLEURENT - Usine Developer - SDK maintainer

Post Reply

Who is online

Users browsing this forum: No registered users and 154 guests