# beat-emitter.js

> dispatch event on beat

Latest version **1.0.0** (published 2015-03-03) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install beat-emitter.js
pnpm add beat-emitter.js
yarn add beat-emitter.js
bun add beat-emitter.js
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-03-03 |
| First published | 2015-03-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | umezo |

## Links

- npm: https://www.npmjs.com/package/beat-emitter.js
- Repository: https://github.com/umezo/beat-emitter.js
- Issues: https://github.com/umezo/beat-emitter.js/issues
- npm.io page: https://npm.io/package/beat-emitter.js

## Recent versions

- 1.0.0 (latest) — 2015-03-03
- 0.0.0 — 2015-03-03

## README

# beat-emmiter.js
dispatch event on beat


# Usage
```javascript
var BeatEmitter = require('beat-emitter.js');

var BEAT_TIMING_LIST = [1000, 2000, 3000]; // the list of beats as Number Array
var beat = new BeatEmitter(BEAT_TIMING_LIST);

beat.on('beat',function(currentBeat,fired){

});


var audio = document.getElementById('audio-element');
setTimeout(function(){
  beat.tickAt(audio.currentTime);
},10);

```

---
_Source: https://npm.io/package/beat-emitter.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
