npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

beatdetector

1.0.2 • Public • Published

BeatDetector.js

npmnpm

Usage

 
 <audio id="audioEle" src="./test.mp3"></audio>
 <script src="../BeatDetector.js"></script> 
 <script>
    let audioEle = document.getElementById("audioEle");
 
    new BeatDetector(audioEle, analysisFin, onBeat, onBigBeat);
 
    function analysisFin(){
        audioEle.play();
    }
 
    function onBeat(){
        console.log("Emit Beat");
    }
 
    function onBigBeat(){
        console.log("Wow!! Emit BigBeat");
    }
 </script> 

you can see this method's use on WebVR-Audio-Visualizer's PreAnalysis and RealTimeDetect

Keywords

none

install

npm i beatdetector

Downloadsweekly downloads

3

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability