"Faking" a split

jetdv wrote on 3/28/2003, 3:26 PM
Since the scripting language doesn't have a split command, SonicPJM indicated it ought to be possible to "fake" it by adding a new event, adjusting it's length property, adding a "take" and then adjusting the start position.

Any chance of getting this added to the FAQ?

Comments

jetdv wrote on 3/29/2003, 6:48 PM
Never mind... Figured it out.
SonyDennis wrote on 3/31/2003, 7:10 AM
Also, if I'm not mistaken, the forthcoming 4.0b update will have a Split command added that does all the hard work for you.
///d@
jetdv wrote on 3/31/2003, 8:05 AM
Well, that would only eliminate 22 lines of code (my "split" segment has 23 lines of code - a single split command would definitely be much easier). However, writing this segment was a great learning experience as to how the pieces interrelate so it was still worth it. Will there be a new version of the API released with 4.0b?
SonyPJM wrote on 4/1/2003, 12:11 PM
Split is in 4.0b and yes we'll release a new version of the API doc (which now includes an alphabetical class index).
JohnnyRoy wrote on 4/6/2003, 8:11 AM
> ...which now includes an alphabetical class index

You guys are the best. I know I was one of the people who asked for this. Thanks for listening.

~jr