Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Pitch from Wav

Pitch from Wav

Scheduled Pinned Locked Moved C#
tutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gnjunge
    wrote on last edited by
    #1

    Hi, Does anybody know how to calculate/extract the Pitch values from a Wave (*.wav) file? Thanks, Gidon

    M 1 Reply Last reply
    0
    • G gnjunge

      Hi, Does anybody know how to calculate/extract the Pitch values from a Wave (*.wav) file? Thanks, Gidon

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      Hi! For this you'll have to perform a fourier transformation. Basically, your try to approximate the wave form you have by adding many sinus waves. That way you get the volume (amplitude) at certain frequencies, which will ultimately give you the pitch. Regards, mav -- Black holes are the places where god divided by 0...

      G 2 Replies Last reply
      0
      • M mav northwind

        Hi! For this you'll have to perform a fourier transformation. Basically, your try to approximate the wave form you have by adding many sinus waves. That way you get the volume (amplitude) at certain frequencies, which will ultimately give you the pitch. Regards, mav -- Black holes are the places where god divided by 0...

        G Offline
        G Offline
        gnjunge
        wrote on last edited by
        #3

        Thanks for the explanation.

        1 Reply Last reply
        0
        • M mav northwind

          Hi! For this you'll have to perform a fourier transformation. Basically, your try to approximate the wave form you have by adding many sinus waves. That way you get the volume (amplitude) at certain frequencies, which will ultimately give you the pitch. Regards, mav -- Black holes are the places where god divided by 0...

          G Offline
          G Offline
          gnjunge
          wrote on last edited by
          #4

          Hi , I succeeded in performing the FFT on my wave file and even printed the results into a nice Spectogram. But I don't know how to extract the pitch from these values. Do you have any pointers at to what function I need to perform on the FFT data? Thanks Gidon

          M 1 Reply Last reply
          0
          • G gnjunge

            Hi , I succeeded in performing the FFT on my wave file and even printed the results into a nice Spectogram. But I don't know how to extract the pitch from these values. Do you have any pointers at to what function I need to perform on the FFT data? Thanks Gidon

            M Offline
            M Offline
            mav northwind
            wrote on last edited by
            #5

            Hi! I'm afraid I don't have any further pointers on how to calculate the pitch value. You should be able to get a pitch value by multipyling each frequency with the amplitude for this frequency and summing up the values. That way you'd get a high value if you have many loud, high-frequency bands and a low value if there are more low-frequency bands. But I must admit I don't know if that'll suite your needs. Regards, mav -- Black holes are the places where god divided by 0...

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups