A package made in Typescript to process sound to detect pitch.
npm install pitchplease
or yarn add pitchplease
To import pitchplease:
import * as PitchPlease from 'pitchplease'
Uses the Fourier decomposition function to break down the sound wave into several pitches.
Find the dominant frequency given within the notes frequencies.
Compute the (squared) magnitudes of the complex amplitudes for each note frequency
Calculates the average magnitude values.
Find the maximum magnitude in the array.
Calculates the frequencies of the notes given.
The equal temperament is the most widely used tuning system, dividing the intervals into equal steps (fn = f0 * (A)n).
Given the starting and ending notes, it calculates all the notes in between.
Gets the frequencies of all given notes on an array.