Pitch Detection

Discussion in 'Public Game Developers Forum' started by henr1kk, Oct 3, 2009.

  1. henr1kk

    henr1kk Well-Known Member

    Nov 4, 2008
    118
    0
    0
    Independent Game Designer and Developer
    Porto, Portugal
    Hi guys,

    I wanna build an app that works by detecting the musical note a person makes with his/her voice. Basically a "How well do you sing?" kinda thing.
    I have no idea if the iPhone OS includes an API for that, but I'm guessing it doesn't. Do you know of any open source code that I could use for that purpose?

    Thanks!
     
  2. Firestar

    Firestar Well-Known Member

    Apr 4, 2009
    210
    0
    0
    Student/Programer
    Wellington, New Zealand
    Have a look at Ultrastar's engine (Singstar Clone). Maybe you could grab some code off that.
     
  3. wootbean

    wootbean Well-Known Member

    Feb 8, 2009
    5,549
    1
    36
    the next whiskey bar
    oh I thought the thread was "Pinch detection" and was like huh? for a minute
     
  4. henr1kk

    henr1kk Well-Known Member

    Nov 4, 2008
    118
    0
    0
    Independent Game Designer and Developer
    Porto, Portugal
    @Firestar Will do.

    @wootbean If I end up creating a thread like that, you have full permission to verbally kick my ass.


    Any further help will be welcome.
    Thanks!
     
  5. pavelegorkin

    pavelegorkin Member

    Sep 29, 2009
    18
    0
    0
    And check this sources, may be you find what you search here.

    This is another free clone
     
  6. dawvee

    dawvee Well-Known Member

    Aug 14, 2009
    46
    0
    0
    iPhone Developer, DaVoid Digital
    Dublin, Ireland
    #6 dawvee, Oct 15, 2009
    Last edited: Oct 15, 2009
    I can't seem to dig up any iPhone specific libs but what you're probably looking for here is a fast fourier transform library. A FFT will let you take audio samples and transform them from time-domain into frequency-domain, and then finding the overall pitch is basically just sorting the values to find the dominant frequencies.

    There are a few open source libraries out there in C and C++, and it would likely just be a matter of porting the code to the iPhone. You may also be able to find an Audio Unit that could be made to work. Performance may be an issue, though, so you'll want to be sure to find a reasonably efficient one.
     
  7. teekarja

    teekarja New Member

    Sep 2, 2010
    1
    0
    0
    Pitch detection

    Measuring pitch robustly is a lot harder than just looking into the FFT. Our company has 12 years of music analysis research background and has most likely the best available solution for the problem.

    We are thinking of putting it out as a Cocoa touch library.
    Drop us a mail at [email protected] if you are intersested of licensing. Would also be benefitial to know what would be an appropriate price point for you.

    Yours,
    Teemu Karjalainen
    Managing Director
    Wavesum Oy
     
  8. kenlem

    kenlem Well-Known Member

    Feb 16, 2009
    57
    0
    0
    My hobby is embedded speech synthesis and speech analysis (see http://www.speechchips.com) so I'm aware of just how involved meaningful pitch detection is. Having a cocoa touch library would be helpful.

    As far as licensing goes, perhaps you could consider a no cost/small fee developer license that would allow people to evaluate and develop with the library. Once the app is ready for the appStore, the develop would then need to pay a license fee based on the size of the company. Small developers with revenue under $100k might have to pay $100-$200 while larger, established companies would have a higher license fee ($1000-$5000).

    I realize that your library represents a lot of work and it could be possible to license it for $10k for each use but that would leave out all but the largest developers. The approach above would be useful to you to get it out on the app store and gain recognition which could lead to other business relationships.

    Thanks.
     

Share This Page