Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6779921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:26:43+00:00 2026-05-26T16:26:43+00:00

I’m developing a program for iPhone. I have read this article and I have

  • 0

I’m developing a program for iPhone.

I have read this article and I have some questions. After I get amplitude of sound file, which ranges of spectrum do I need to transform into FFT(Fast Fourier transform)? In article, man says “40-80, 80-120, 120-180, 180-300”, how does he know which ranges? After I get FFT (using OouraFFT) I have frequency spectrum, then as I understood must take control points, so how to take them?

I have a few more questions, but please help me with those questions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:26:43+00:00Added an answer on May 26, 2026 at 4:26 pm

    in article man says “40-80, 80-120, 120-180, 180-300”, how does he know which ranges?

    He didn’t know them – he made them up.

    Those ranges are very low in frequency. Low frequency sounds tend to have the longest sustain/decay, so you’re less likely to have temporal aliasing problems by using lower frequencies. That’s important in the application you’re looking to implement. The sounds vary over time, and the input samples could be at any given offset of the song/sounds, and most likely won’t exactly match your window offsets. Lower frequency parts of the sound are still susceptible to this, but much less so than higher frequency parts.

    After I get FFT (using OouraFFT) I have frequency spectrum, then as I understood must take control points, so how to take them?

    OouraFFT is written in C, not Objective-C. Can you link to the wrapper you are using?

    If you’re using this wrapper it looks to me like you’re going to have to low-pass filter your data before hand, and maybe modify/additionally process the results of the library to do exactly what you’re trying to accomplish. Or find a different iPhone FFT library that wraps more high level concepts on top of FFT.

    That library calls OouraFFT rdst, and does so in such a way that all buckets are evenly distributed (pretty much just the raw FFT data, with no higher level concepts bolted on). Unless you go with smaller buckets and aggregate them, you’re not going to get those specific buckets described in the article you read.

    You could try simply using a different evenly spaced bucket selection instead, and end up with something like 40-80, 80-120, 120-160, 160-200, 200-240, 240-280, 280-320. Or you could use 40-60, 60-80 etc, and combine/average buckets when you are done.

    To get the bucket sizes you want, you’ll need to do some math. From that library’s readme:

    Say your signal has a sampling rate of 48,000 Hz, and you are computing the FFT on chunks of your signal 1024 samples long. Then, OouraFFT.spectrumData has 1024/2 = 512 frequencies in it, evenly spaced between 0 and 48,000/2 = 24,000.

    The longer the window, the greater number of buckets, but the more likely you will have temporal issues. So, select your window size, then low-pass filter your input data and reduce the sample rate so you can get bucket sizes (frequency ranges) that fit your need, and run the filtered data through.

    BTW, I am not sure about that implementation, but I read here that you have to throw out the lowest frequency bucket when using FFT. This article has a similar notice, saying that the lowest bucket has only half the width.

    If you’re really wanting to get accurate results out of this project, I suggest you generate test data with those specific frequencies and window periods so you can verify that your array data is getting populated correctly, and your data isn’t accidentally getting skewed (off-by-one errors, window and filter calculations incorrect, etc). Otherwise your success will be by sheer luck and fiddling around because you won’t be able to diagnose where any problems in your code lie.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have some data like this: 1 2 3 4 5 9 2 6
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a reasonable size flat file database of text documents mostly saved in
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.