Troubleshooting
Need some help from a script master please!!
Started by ChiLam on .
Sign in or create an account to join the conversation.
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
RotateStepNote.jzml
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
RotateStepNote.jzml
have u tried using modulo (%)? it should give u a nice wrap around back to the beginning if your steps go out or range.
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!
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!
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
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