Giter Club home page Giter Club logo

Comments (1)

cjcliffe avatar cjcliffe commented on July 25, 2024

@dominiroc11 just need to pass the un-altered FFT (it should look symmetrical) to beatdetektor with a timestamp -- bd.process(timestamp, fft_data);

After each update it will set bd.win_bpm_int and bd.win_bmp_int_lo if detection was reasonable. win_bpm_int is BPM accurate to 1 decimal place (but you have to divide by 10) and will take longer to detect and is usually inaccurate unless win_bmp_int_lo (which is just integer BPM) is also set.

If you're just processing a WAV file just tally all the win_bmp_int_lo values and pick the one that appears most. Once you find that you can compare to the win_bmp_int tally and find the best match that's < 1.0 away from the win_bmp_int_lo pick.

Also bd.beat_counter, bd.half_counter and bd.quater_counter will contain the current 1, 1/2 and 1/4 beat counts (which you can use as a counter to sync something to for real-time visuals) but won't necessarily contain the actual beat count from a track.

from beatdetektor.

Related Issues (8)

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.