Skip to content

A simple module to find music's BPM by tapping along

License

Notifications You must be signed in to change notification settings

owenmcateer/BpmTapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

BPM Tapper 🥁

A simple module to find music's BPM by tapping along.
Example: https://owenmcateer.github.io/Motus-Art/projects/week_111.html

Usage

Include the BpmTapper script:
<script src="https://cdn.jsdelivr.net/gh/owenmcateer/BpmTapper/bpmTapper.js"></script>

Create a new instance; with your animations FPS and an optional starting BPM.
const bpm = new BpmTapper(fps, bpm);

Now click the mouse or press "t" to time BPM.

Methods

getBpm()
Returns the current BPM.

getBpmFps()
Returns how many frames per-beat.

getSpeed()
Transition speed is 1/2 of BPM tick.

getBpmOffset()
A BPM start offset for syncing animations.

Releases

No releases published

Packages

No packages published