octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59149] [octave forge] (signal) Resampling fro


From: anonymous
Subject: [Octave-bug-tracker] [bug #59149] [octave forge] (signal) Resampling from 22050 to 48000 Hz introduces strange and unexpected artifacts
Date: Thu, 8 Oct 2020 13:24:46 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Follow-up Comment #40, bug #59149 (project octave):

Added cout statements to upfirdn.cc (modified version attached).

The version with Ofast and without Ofast use different ranges for ix (file
"delta" attached), because it starts with different values of n.

The correct output value for that should be 0.793431 but with the different
range of ix it becomes 0.932585, hence a spike.

It looks like the culprit may be this line (possibly):

       const octave_idx_type n = floor (m/r);


which gives different results for n depending on compiler flags.

How should n be rounded in that line?

(file #49941, file #49942)
    _______________________________________________________

Additional Item Attachment:

File name: delta                          Size:10 KB
    <https://file.savannah.gnu.org/file/delta?file_id=49941>

File name: upfirdn.cc                     Size:4 KB
    <https://file.savannah.gnu.org/file/upfirdn.cc?file_id=49942>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59149>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]