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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:58:04+00:00 2026-06-17T22:58:04+00:00

whether i just nest them ( iff(fft(audio)) ) or try window-by-window ( window the

  • 0

whether i just nest them (iff(fft(audio))) or try window-by-window (window the audio, do the fft, do the ifft, then invert the window, replacing zero with eps, then merge the samples back (trying abs here and there in the pipelines)) i get only noise.

i know the ifft is only inverse to the fft with infinite precision arithmetic, infinitely many samples, etc (right?) i’m working with 64bit floating point and 44kHZ sample rate. but, i would expect to be able to at least hear the original audio.

is my error practical or theoretical? i can give code, if it’s a bug.

  • 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-17T22:58:05+00:00Added an answer on June 17, 2026 at 10:58 pm

    Building on JoeKington’s comment, I have downloaded this file, and tried the following

    >>> import scipy.io.wavfile
    >>> rate, data = scipy.io.wavfile.read('wahoo.wav')
    >>> data
    array([134, 134, 134, ..., 124, 124, 124], dtype=uint8)
    >>> data_bis = np.fft.ifft(np.fft.fft(data))
    >>> data_bis
    array([ 134. +6.68519934e-14j,  134. -4.57982480e-14j,
            134. -1.78967708e-14j, ...,  124. -2.09835513e-14j,
            124. -1.61750469e-14j,  124. -2.14867343e-14j])
    >>> data_bis = data_bis.astype('uint8')
    C:\Users\Jaime y Eva\Desktop\stack_exchange.py:1: ComplexWarning: Casting complex values to real discards the imaginary part
      # -*- coding: utf-8 -*-
    >>> data_bis
    array([134, 133, 133, ..., 123, 123, 123], dtype=uint8)
    >>> scipy.io.wavfile.write('wahoo_bis.wav', rate, data_bis)
    

    And the resulting file plays exactly the same as the original one.

    So turning the return complex values into reals is only half the problem (and you may want to go with np.abs rather than data.real, as the code above implicitly does), and you then also need to recast your floating point numbers to uints of the apropriate bit-depth.

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

Sidebar

Related Questions

Hi just wondering whether or not to add a pull to refresh in my
I just wonder whether there will be any conflict if two service intents are
Just wondering whether anyone knows how to get blogger labels into alt tags in
I was just wondering whether it is acceptable to close a common tag, eg.
I have a NSUserDefault which just stores whether the db has been configured or
I have a working selector but I just wondered whether there was another way
I just posted a question about whether WPF is a good choice for a
Just trying to establish whether prototype can do something like $$('#ID a:last').css('color','#111'); Any ideas
I just want to check whether the facebook user is atleast on facebook for
Just getting up to speed with YAML and want to confirm whether it's possible

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.