Nested loops

2022-05-17 Thread jbv via use-livecode
Hi list, What is the best and most efficient way to write the following javascript loops in LC ? for (let i = 0, j = myArray.length - 1; i < myArray.length; j = i++) { } This goes beyond simple nested loops. So far, because of lack of time, I have pre-calculated the successive values of i and

Re: Nested loops

2022-05-17 Thread Alex Tweedly via use-livecode
Direct equivalent is probably repeat with i = 0 to myArrayLength-1    put i-1 into j    if j < 0 then put myArrayLength-1 into j    . end repeat OR, if you prefer a single-statement version repeat with i = 0 to myArrayLength-1    put (i + myArrayLength-1) mod myArrayLength  into j    .

Re: Movie text tracks

2022-05-17 Thread Richmond via use-livecode
Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html Best, Richmond. On 17.05.22 20:28, Devin Asay via use-livecode wrote: Hi all, I’m resurrecting some QuickTime

Re: Movie text tracks

2022-05-17 Thread Paul Dupuis via use-livecode
This is not any sort of immediate help, but a quick Google search suggests that both AVF (Apple Video Foundation) and MMF (Microsoft Media Foundation - the underlying framework for the player in Livecode 10) support classes and APIs to access multiple media tracks and metadata. I don't know

Movie text tracks

2022-05-17 Thread Devin Asay via use-livecode
Hi all, I’m resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesn’t seem to be a way anymore to show text tracks, either in

Re: Movie text tracks

2022-05-17 Thread J. Landman Gay via use-livecode
Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: