Giter VIP home page Giter VIP logo

pulse.js's Introduction

Pulse.js

This library aims to get the BPM (beat per minute) automatically with Web Audio API.

Installation

To install Pulse.js with bower: bower install pulsejs

Usage

Here is a basic usage of Pulse:

var uri = "song.mp3";
var pulse = new Pulse({
  
    // when Pulse has finished to compute main data: beat, significant peaks...
    onComplete: function(event, pulse) {
        var extrapolatedPeaks = pulse.getExtrapolatedPeaks(
            pulse.renderedBuffer,
            pulse.significantPeaks,
            pulse.beat
        );

        // beat (ms and bpm properties)
        console.log(pulse.beat);

        // extrapolated peaks
        console.log(extrapolatedPeaks);
    }
});

pulse.loadBufferFromURI(uri);

Examples

This is a screenshot of a game based on rhythms like "Dance Dance Revolution". It show one of the several possibilities of Pulse.


Mark Ronson - Uptown Funk feat. Bruno Mars


Avicii - The Nights


Avicii - The Nights

Documentation

The full documentation can be found on this repository.

Contributions

  • Install all grunt tasks: npm install.
  • Then run: grunt watch.
  • Write your tests and make your changes.
  • Enjoy :-) and please do not forget comments.

Of course, all contributions are welcome.

References

pulse.js's People

Contributors

sannremy avatar

Stargazers

 avatar Rafael Uchoa avatar Maarten Dings avatar Lucas Negritto avatar Vinicius Franco avatar Kfwebdev avatar lmagendie avatar Freda Xiaoyun Yu avatar  avatar aarón montoya-moraga avatar Laura Juo-Hsin Chen avatar  avatar Hendrik Putzek avatar  avatar Kyle avatar FUZZYW avatar Ethan McCoy avatar Mohammad Asskar avatar Jacob Zimmerman avatar Stephen King avatar  avatar  avatar Gavin Owen avatar Theun Kohlbeck avatar  avatar Chia-liang Kao avatar Christopher Konopka avatar Naomi avatar Michael Anthony avatar

Watchers

 avatar Michael Anthony avatar

pulse.js's Issues

Object.getNotifier is deprecated

I am hoping to use pulse to simply do bpm detection with the WebAudioAPI. I installed the project using bower, and made html file and pasted your README basic usage code as a script. In my console I get the error

TypeError: Object.getNotifier is not a function

And upon further research I discovered that Object.getNotifier is deprecated. Is there an easy fix for this?

Beats from soundcloud

I see that you load the url from a file. Can you do the same for soundcloud urls? what if the file has been loaded via sound cloud wrapper?

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.