Page 1 of 1

Need some help from a script master please!!

Posted: 03 Dec 2014 20:30
by ChiLam
Hello

Have been attempting to make a StepNote pattern rotate - sadly my script skills are very much newb level!

It seems like I have nearly achieved this but for one frustrating problem - it is only working when I rotate to the left! When I move the pattern to the right the pattern dissapears as it goes beyond the edge. It seems like it should work since the script for moving left and right are identical apart from one +/- sign!

If anyone more knowledgeable could give the script a quick look/test and let me know what is wrong I would be very grateful for the help!

here is the template:-

Thanks in advance

Re: Need some help from a script master please!!

Posted: 10 Dec 2014 03:03
by frankfurter
have u tried using modulo (%)? it should give u a nice wrap around back to the beginning if your steps go out or range.

Re: Need some help from a script master please!!

Posted: 10 Dec 2014 07:41
by Softcore
Try this one! ;)

Re: Need some help from a script master please!!

Posted: 10 Dec 2014 09:30
by ChiLam
Oops sorry....I forgot to update - Macciza already came to my resuce!

Many thanks to you all though, I shall study your solution too! It can never hurt to see the various possible solutions to this ;D

Thanks again!

Re: Need some help from a script master please!!

Posted: 11 Dec 2014 02:45
by Macciza
Hi
Sorry about that . . .
See other thread for my solution
Critical difference to note here is that my approach uses subarrays to reorganise the array
I believe this is quicker then iterating through a for loop
Cheers