Giter Site home page Giter Site logo

Comments (9)

basisbit avatar basisbit commented on August 23, 2024

Best practice for BPM values in usdx files is to always use a multiple of the actual song BPM, so that it is between 200 and 400.
: 0 10 5 bla means the syllable bla with a pitch of 5 starts at beat 0 of the current sentence and ends at beat 10 of the current sentence.

from play.

basisbit avatar basisbit commented on August 23, 2024

the mp3 file you are using, is that maybe encoded in variable bitrate?

from play.

achimmihca avatar achimmihca commented on August 23, 2024

The MP3 is irrelevant.
It's a file with 30 seconds of silence. You could also use any other mp3. The notes that are displayed in USDX will be the same because this only depends on the description of the notes in the Ultrastar txt file.

from play.

basisbit avatar basisbit commented on August 23, 2024

time is relative in usdx and YASS. So, if you use a file with variable bitrate instead of coded bitrate, depending on ffmpeg version used, the pointers->timestamp conversion is off. In USDX, the current playback position of the played audio frame is what tells the code what the "current beat" in game is.

from play.

basisbit avatar basisbit commented on August 23, 2024

I am just trying to understand why the values are off there. I quickly checked the relevant code in usdx and yes, your calculation should be correct.

from play.

achimmihca avatar achimmihca commented on August 23, 2024

Found the answer: http://yass-along.com/beats/

from play.

achimmihca avatar achimmihca commented on August 23, 2024

You can think of BPM in Ultrastar files not as "beats per minute" but "bars per minute" in four-four time (Viervierteltakt).
Thus, one has to multiply with 4, to get what is commonly known as "beats per minute".

Anyway, the position of notes in Ultrastar files is then given in "beats per minutes".

This fixes the mismatch I had in my calculation: 5 [s] / 4 = 1.25 [s]

from play.

basisbit avatar basisbit commented on August 23, 2024

lol, never realized that before. Anyways, found that now in the code of USDX: https://github.com/UltraStar-Deluxe/USDX/blob/916a35c408214a35022e70b9e9629145f62803a2/src/base/USong.pas#L1742

from play.

achimmihca avatar achimmihca commented on August 23, 2024

Yeah, you have to know this to get it right...

Anyway, displying the lyrics is now in sync with the music in my prototype. Last important thing missing now is recording notes and giving points. Yay!

from play.

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.