Giter Site home page Giter Site logo

Comments (3)

zhw2590582 avatar zhw2590582 commented on June 16, 2024

In fact, I don’t quite understand what you said. If there is a lyric that starts at 9.8s, you want to display the next page before the cursor reaches 10s? In that case, when should I skip to the next page 10s ago? This is not easy to judge. I recommend manually adjusting the duration to adjust the display of the waveform:

wf.setOptions({
    duration: 20,
});

Similar example: https://subplayer.js.org

from wfplayer.

moritz avatar moritz commented on June 16, 2024

My idea would be have some sort of "padding" (I know, option name taken already). If you set duration to 10s and padding to 1s, then the first page shows the first 10s of wave form, but skips to the second page as soon as the cursor reaches 9s. Then the second page shows 9s to 19s, and skips to page 3 when the cursor reaches 18s (1s before the end of the current page).

Changing duration just shifts the problem. When I set the duration to 20s, I have the same problem as before with lyrics that start at 19.8s. Moreover, when I'm not on the first page, but, say, at 2 minutes with duration set to 20s, then switching duration and thus zoom level moves the cursor around wildly.

from wfplayer.

zhw2590582 avatar zhw2590582 commented on June 16, 2024

I understand what you mean, but a lot of code changes are needed to implement it, I want to think about it

from wfplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.