Welcome to %s forums

BrainModular Users Forum

Login Register

H and V divisions

Tell us what you'd like Usine to do
23fx23
Member
Posts: 2545

Unread post by 23fx23 » 08 May 2009, 17:55

could be useful (ex if not working on 4/4 or when need to divide to any nb in X and Y for data modules (curve, lines, step, also dividing arrays visually maybe?)
aslo native roll function for those modules (not that i don't like bmoussay script but would be lighter on Cpu)

User avatar
senso
Site Admin
Posts: 4427
Location: France
Contact:

Unread post by senso » 09 May 2009, 09:36

the roll function already exists : shift key!!!!

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

Unread post by martignasse » 09 May 2009, 09:40

senso wrote:the roll function already exists : shift key!!!!
you mean 'Browser->modules->Array->Shift Array' ?
Martin FLEURENT - Usine Developer - SDK maintainer

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

Unread post by nay-seven » 09 May 2009, 10:23

no, senso refer to the shift on your pc/mac keyboard
try to keep it pressed when editing lines,step,seqswitch modules...;-)

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

Unread post by martignasse » 09 May 2009, 12:22

ha, ok

good to know... should re-read the manual sometimes
Martin FLEURENT - Usine Developer - SDK maintainer

23fx23
Member
Posts: 2545

Unread post by 23fx23 » 09 May 2009, 14:02

oooh yes I tried very cool! and the ctrl reset to default values, nice didn't knew!
martignasse: I also need to check all shift/ctrl exising functions! time to buy a new ink cartridge :)

...to be a little boring I ideally dlike to access the same kind of roll at a pach level,
for example if it receives an event it shift(sorry roll) any sequence of 2, 3 ect..
in fact a module version of bmoussay script would be very modular to apply to any array type.
but for now it do the job for me, just a bit hitting cpu if using to much instances/ a module version would do maybe...

and I maybe found a workaround if I concat the same array 2x and use the shift module, can fake a roll if using AmodB.
just a maybe later when modules will be rewritten suggest then..but most modular/less boring i guess instead of reimplementing to all might be a new friend for the shift array module called roll array :)

edit ok, another solution i found:
Image
limitations: max array lenght become 170 (512/3) but might be enough for many cases.
advantages: 50percent Cpu load of the script version.
quite sure there is a better version possible keeping 512 limit, working on, if anyone has ideas welcome!

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

Unread post by martignasse » 09 May 2009, 15:08

hey 23fx23,

very clever patch :cool:

a user module souhn't be to difficult, inspired from bmoussay script. Could be a good practice for someone who want to begin with the SDK :rolleyes:

I can help if needed
Martin FLEURENT - Usine Developer - SDK maintainer

23fx23
Member
Posts: 2545

Unread post by 23fx23 » 09 May 2009, 16:02

ok no more limits array can be 512, seems to equal script on long array, less cpu,optimized for short arrays:
Image
yes if anyone wants to try with sdk (not enough skills fo me now, I hope one day).

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

Unread post by nay-seven » 09 May 2009, 16:57

cool , shift_array_23fx23.pat added to my patch dir !
now have to study this ...;-)
thanks

23fx23
Member
Posts: 2545

Unread post by 23fx23 » 09 May 2009, 17:14

uploaded the patch in addons/data

basically it shifts the original array and creates two other clones virtually one the left and one the right (one shifted of the array lengh and one negatively) that also shifts, so summing the three get the rolled array. the previous version might be lighter on cpu if array lengh is less than 170, have to check not sure.

Post Reply