pitchfinder | A compilation of pitch detection algorithms for Javascript | Audio Utils library

 by   peterkhayes TypeScript Version: 2.3.2 License: No License

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.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pitchfinder has a low active ecosystem.
              It has 277 star(s) with 44 fork(s). There are 14 watchers for this library.
              OutlinedDot
              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

            kandi-Quality Quality

              pitchfinder has no bugs reported.

            kandi-Security Security

              pitchfinder has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              pitchfinder does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse 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
            Get all kandi verified functions for this library.

            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:07

            You have a sample rate wrong somewhere else in your code.

            Source https://stackoverflow.com/questions/53000311

            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:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i pitchfinder

          • CLONE
          • HTTPS

            https://github.com/peterkhayes/pitchfinder.git

          • CLI

            gh repo clone peterkhayes/pitchfinder

          • sshUrl

            git@github.com:peterkhayes/pitchfinder.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Audio Utils Libraries

            howler.js

            by goldfire

            fingerprintjs

            by fingerprintjs

            Tone.js

            by Tonejs

            AudioKit

            by AudioKit

            sonic-pi

            by sonic-pi-net

            Try Top Libraries by peterkhayes

            rolling-rate-limiter

            by peterkhayesTypeScript

            solitaireVictory

            by peterkhayesJavaScript

            inlineAB

            by peterkhayesJavaScript

            HackReactorProject

            by peterkhayesJavaScript

            instrumental.js

            by peterkhayesJavaScript