1.3.1 • Published 2 years ago

pitchplease v1.3.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Pitch Please

A package made in Typescript to process sound to detect pitch.

Installation

npm install pitchplease or yarn add pitchplease

To import pitchplease:

import * as PitchPlease from 'pitchplease'

API

calculateAmplitudes

Uses the Fourier decomposition function to break down the sound wave into several pitches.

interpretCorrelations

findDominantFrequency

Find the dominant frequency given within the notes frequencies.

computeMagnitudes

Compute the (squared) magnitudes of the complex amplitudes for each note frequency

calculateAverageMagnitudeValues

Calculates the average magnitude values.

findMaximumMagnitude

Find the maximum magnitude in the array.

calcNotesFreq

Calculates the frequencies of the notes given.

calcEqualTemperamentFreq

The equal temperament is the most widely used tuning system, dividing the intervals into equal steps (fn = f0 * (A)n).

getScalesWithinRange

Given the starting and ending notes, it calculates all the notes in between.

getAllFrequencies

Gets the frequencies of all given notes on an array.

References, credits & references

Making a guitar tuner

Music and Coding

Web Audio API

Sound on Sound: What's In A Sound?

Standardized audio context

Notes Frequencies

Audio Worklet

Quick Guide to AudioWorklet

1.3.1

2 years ago

1.3.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago