Page 1 of 1
Posted: 08 May 2009, 17:55
by 23fx23
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)
Posted: 09 May 2009, 09:36
by senso
the roll function already exists : shift key!!!!
Posted: 09 May 2009, 09:40
by martignasse
senso wrote:the roll function already exists : shift key!!!!
you mean 'Browser->modules->Array->Shift Array' ?
Posted: 09 May 2009, 10:23
by nay-seven
no, senso refer to the shift on your pc/mac keyboard
try to keep it pressed when editing lines,step,seqswitch modules...

Posted: 09 May 2009, 12:22
by martignasse
ha, ok
good to know... should re-read the manual sometimes
Posted: 09 May 2009, 14:02
by 23fx23
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:

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!
Posted: 09 May 2009, 15:08
by martignasse
hey 23fx23,
very clever patch
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
Posted: 09 May 2009, 16:02
by 23fx23
ok no more limits array can be 512, seems to equal script on long array, less cpu,optimized for short arrays:

yes if anyone wants to try with sdk (not enough skills fo me now, I hope one day).
Posted: 09 May 2009, 16:57
by nay-seven
cool , shift_array_23fx23.pat added to my patch dir !
now have to study this ...

thanks
Posted: 09 May 2009, 17:14
by 23fx23
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.