pitchfinder | A compilation of pitch detection algorithms for Javascript | Audio Utils library
kandi X-RAY | pitchfinder Summary
kandi X-RAY | pitchfinder Summary
pitchfinder is a TypeScript library typically used in Audio, Audio Utils applications. pitchfinder has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.
A compilation of pitch detection algorithms for Javascript. Supports both the browser and node.
A compilation of pitch detection algorithms for Javascript. Supports both the browser and node.
Support
Quality
Security
License
Reuse
Support
pitchfinder has a low active ecosystem.
It has 277 star(s) with 44 fork(s). There are 14 watchers for this library.
It had no major release in the last 12 months.
There are 8 open issues and 17 have been closed. On average issues are closed in 208 days. There are 4 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of pitchfinder is 2.3.2
Quality
pitchfinder has no bugs reported.
Security
pitchfinder has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
pitchfinder does not have a standard license declared.
Check the repository for any license declaration and review the terms closely.
Without a license, all rights are reserved, and you cannot use the library in your applications.
Reuse
pitchfinder releases are not available. You will need to build from source code and install.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pitchfinder
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pitchfinder
pitchfinder Key Features
No Key Features are available at this moment for pitchfinder.
pitchfinder Examples and Code Snippets
No Code Snippets are available at this moment for pitchfinder.
Community Discussions
Trending Discussions on pitchfinder
QUESTION
Inaccurate Hz detection of browser audio
Asked 2018-Oct-26 at 10:14
import PitchFinder from 'pitchfinder'
const detectPitch = PitchFinder.AMDF()
const notes = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'G', 'G#']
export default {
data () {
return {
note: 'A',
register: 4,
cents: 0
}
},
mounted () {
navigator.mediaDevices.getUserMedia({ audio: true })
.then(stream => {
const context = new AudioContext()
const source = context.createMediaStreamSource(stream)
const processor = context.createScriptProcessor()
source.connect(processor)
processor.connect(context.destination)
processor.onaudioprocess = e => {
const hz = detectPitch(e.inputBuffer.getChannelData(0))
if (hz) {
console.log(hz)
// ¢ or c = 1200 × log2 (f2 / f1), 1 semitone = 100 cents
const semitones = 12 * (Math.log2((hz) / 440))
const cents = semitones * 100
// TODO: update component
}
}
})
.catch(e => {
// TODO: handle error
})
}
}
}
...ANSWER
Answered 2018-Oct-26 at 06:07You have a sample rate wrong somewhere else in your code.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pitchfinder
You can download it from GitHub.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page