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 8913395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:27:06+00:00 2026-06-15T04:27:06+00:00

I’m having trouble understanding a concept my teacher taught me and getting pretty inconsistent

  • 0

I’m having trouble understanding a concept my teacher taught me and getting pretty inconsistent answers between classmates. I was wondering if anyone could help clarify this idea or concept?

It’s known as num chunking in audio processing. We have to deal with WAV files only. So we assume our audio data is uncompressed.

The numChunking has to do with Fourier Transform on an audio sine wave.

To determine the # of numChunks we do something like

method1:

int numChunks = totalNumOfSamples/chunkSize

but few others I’ve spoken with have also said

method2:

int numChunks = totalNumOfSamples/binSize

The difference is that chunkSize is just some number specified or hardcoded in like 1024 or 2000 or something. binSize on the other hand is the number of frequencies we draw after applying Fourier Transform to our samples. The number of bins(bars/frequency bars on our panel) we generally draw is about 50-100 to display on screen any more and it’ll just take forever.

In method 1 we get a number of numchunks from for example like 47988 samples / 2000 = 23 numChunks. then we send these chunks in to a for loop and add each sample of the sound data into each chunk, so if we put all the 23 numChunks together we have pretty much our entire sound data with some loss of precision due to being unable to accommodate every sample from the division. We then add them into an array or ArrayList to be later sent to Discrete Fourier Transform(Forward Fourier function) and we get our results and place them in our bins and plot/draw the results as bars.

One last detail that I’m unsure of is if the fourier transform divides by TOTAL samples in the entire sound or just the TOTAL # of samples in a numChunk.

In method 2 the way this one works is numChunks = total samples / binSize for example we’ll use the same example. 47988/ 30bins = 1599 numChunks. In this idea my classmate explained to me that numChunks is a number of subArrays. So I made a 2D array, 1599 arrays each array with a length of a binSize so when we process each subArray through forward fourier transform we get our resulting amplitude value or frequency We then run each subArray through forward fourier dividing the value by the TOTAL sample size of the entire sound.

the results from both ideas are erratically different. Method 1 yields about 37.5 for the first value and the method 2 yields 3689 as a value. Their following values all seem generically correct so I’m not sure which method is correct or if any is correct at all.

This is being coded in Java

This question is quite confusing as you can tell I’m very bewildered myself. I hope someone can help clarify which is correct or incorrect or explain the concept.

  • 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-06-15T04:27:08+00:00Added an answer on June 15, 2026 at 4:27 am

    Wow, you are a bit confused. I’ll do my best to try and help explain a little.

    What you’re doing with a DFT (Discrete Fourier Transform) is taking a number of samples N and converting them from the time domain to the frequency domain. The size of the array you get out in the frequency domain is the same size as the array you put in in the time domain. So, you can set your numChunks to be whatever you want depending on what frequency resolution you want in the output arrays because the frequency resolution is going to be sampleRate/numChunks. So, if you want, say 80 frequency values out, use a chunk size of 80. Divide your sound file into totalNumSamples/80 chunks and you’ll get the frequency content of each chunk in turn.

    To answer your other question, the total number of samples in the entire sound doesn’t matter – each DFT you do is entirely independent so all that matter is the number of samples you’ve put into each DFT.

    I hope that helps a little.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Does anyone know how can I replace this 2 symbol below from the string
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
Let's say I'm outputting a post title and in our database, it's Hello Y’all

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.