Skip to content

A javascript implementation of the YIN algorithm for Node.js and the browser

License

Notifications You must be signed in to change notification settings

adriano-di-giovanni/yinjs

Repository files navigation

Yin

A javascript implementation of the YIN algorithm for Node.js and the browser.

Installation

npm install yinjs

Usage

var frequency = yin(data, sampleRate, threshold)

The data argument is a Float32Array representing time-domain data for a signal.

The sampleRate argument is a Number.

The threshold argument is a Number. It is optional. It defaults to 0.07.

The function returns a Number value representing the fundamental frequency of the signal.

The example/ folder contains a working example of the yin function analyzing data from live input.

License

This project is MIT-licensed

About

A javascript implementation of the YIN algorithm for Node.js and the browser

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published