Jump to content
Search Community

benoit

Members
  • Posts

    135
  • Joined

  • Last visited

Posts posted by benoit

  1. Hi,

    I try to make my own player with timeline and sound butI don't know what's wrong in my codepen.

    Read the sound, is good in synch but seek and pause fail.


    In my case, I change the timeScale to make it easy to "snap" with half-note and use "progress" to "seek".

    The yellow circle is the open hit hat and is not good when I "seek" or "pause" the sound.
    Any idea, any similar tools (with sound, I know GSDEVtools) ?

    See the Pen MWOwRYo by benoitwimart (@benoitwimart) on CodePen

  2. Hello,


    No question, just GSAP fanboy :)

     

    I've just finish this project :
    - Animation with GSAP and PixiJS (from SVG to json and sprite + PNG)
    - Export in png with PHP
    - And mp4 made with FFMPEG
    (sound is made with Ableton)
     

     

     

    • Like 3
  3. function isNum(n) { return !isNaN(parseFloat(n)) && !isNaN(n - 0) }
    
    let  d= "M23,80.5 C48,64.83333 73,49.16667 98,33.5 80.16667,28.5 62.33333,23.5 44.5,18.5 53.16667,49.16667 61.83333,79.83333 70.5,110.5 ";
    
    d = d.trim().replaceAll(/([A-Z])+/ig, "$1 ");
    d = d.replaceAll(/,/ig, " ");
    
    d = d.split(' ')
    
    let format = {"C":7,"M":3,"L":3,"V":2,"H":2,"Q":5,"Z":0};
    
    
    d.forEach((e,i) => {
      if(!isNum(e)){
          if(isNum(d[i+format[e]])) d.splice(i+format[e], 0, e);
      }
    });

    Pretty Ugly :)

    • Like 2
×
×
  • Create New...