Need some help from a script master please!!

Discuss problems and solutions.
Post Reply
ChiLam
Newbie
Posts: 42
Joined: 02 Dec 2014 18:51

Need some help from a script master please!!

Post 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
Attachments
RotateStepNote.jzml
(6.18 KiB) Downloaded 47 times
frankfurter
Newbie
Posts: 17
Joined: 21 Nov 2014 02:47

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

Post 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.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

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

Post by Softcore »

Try this one! ;)
Attachments
RotateStepNote-corrected.jzml
(6.76 KiB) Downloaded 55 times
ChiLam
Newbie
Posts: 42
Joined: 02 Dec 2014 18:51

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

Post 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!
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

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

Post 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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Post Reply