Skip to content

violetadev/pitchplease

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published