Nutcracker: bug fix, LSP timings

Discussion in 'xLights (Nutcracker)' started by smeighan, Aug 21, 2012.

  1. smeighan

    smeighan Dedicated Elf

    Joined:
    Jan 19, 2012
    Messages:
    1,056
    Likes Received:
    5
    Location:
    4217 Greenfinch Dr CO 80126
    dpitts found an error in how i calculated the timing for lsp.


    here was thread from DLA




    Thanks!


    I had this code, $f is the number of frames into your animation. $frame-delay would be 50 for 50 ms, 100 for 100ms
    $time=$f*$frame_delay*1000;
    $time = $time * .882; // just imperical measurement that one second timing = 88200


    i have changed it to
    $time=($f*$frame_delay)/1000;
    $time = $time * 88200; // just imperical measurement that one second timing = 88200




    Since i always pasted with
    "Snap to nearest timings"
    "Use clipboard timings"
    maybe that is why sometimes it works? I had pasted 9 second sequences and in lsp they ended up as 9 seconds, other times when i pasted they would be 90 seconds.


    It pastes now without these two things selected.


    I would also suggest double clicking the pattern and waiting until it says "Pattern pasted", then go to the cell where you want the pattern and type Ctl-v. Works much easier than trying to drag and drop.

    thanks again




    i have released it so give it a try now....

     
  2. lithgowlights

    lithgowlights Senior Elf

    Joined:
    May 6, 2010
    Messages:
    742
    Likes Received:
    16
    Location:
    Lithgow, NSW
    Find Me On:
    Great pickup and fix, thanks
     
  3. fasteddy

    fasteddy I have C.L.A.P Global Moderator Generous Elf

    Joined:
    Apr 26, 2010
    Messages:
    6,471
    Likes Received:
    16
    Location:
    Albion Park NSW
    Find Me On:
    very nice
     

Share This Page