bugGNU Octave - Bugs: bug #61970, [octave forge] (signal) Resampling...

 
 

bug #61970: [octave forge] (signal) Resampling from 44100 to 24000 Hz introduces strange and unexpected artifacts

Submitter:  None
Submitted:  Tue 01 Feb 2022 09:30:37 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  lostbard
Originator Name:  Marc René Schädler Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 6.2.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 24 Apr 2022 11:06:48 AM UTC, comment #6: 

Closing as fixed with the new release of signal 1.4.2

John Donoghue <lostbard>
Group Member
Sun 06 Feb 2022 07:27:43 PM UTC, comment #5: 

Works for me with the patch for both bugs.

Will this go into the upcoming release of signal for Octave 7?

Arun Giridhar <arungiridhar>
Group Member
Sat 05 Feb 2022 04:45:47 PM UTC, comment #4: 

With the fix from bug # 59149 I get the attached picture. Looks to me like that fixes the issue.

bug #59149.png?file_id=52807" />

Philip Nienhuis <philipnienhuis>
Group Member
Fri 04 Feb 2022 03:39:10 PM UTC, comment #3: 

Can thius bug be closed as a duplicate of bug #59149 ?

I posted some comments there.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 03 Feb 2022 09:29:01 AM UTC, comment #2: 

I can confirm this behavior happens with signal 1.4.1 on  Octave 6.4.0. You can see for yourself by pasting OP's code at octave-line.net (start with pkg load signal).

Arun Giridhar <arungiridhar>
Group Member
Tue 01 Feb 2022 06:21:51 PM UTC, comment #1: 

That bug says patch submitted but no indication it was fixed. Does this error occur even with that patch?

Anonymous
Tue 01 Feb 2022 09:30:37 AM UTC, original submission:  

Back again with resample inaccuracies.
Probably related to bug #59149
Was it fixed?

When I execute the following code:

fs44 = 44100;
fs24 = 24000;
s44 = sin(linspace(0,1000,fs44+1).*2*pi);
s24 = resample(s44,fs24,fs44);
plot(linspace(0,1,length(s44)),s44,'k','linewidth',2)
hold on
plot(linspace(0,1,length(s24)),s24,'r','linewidth',2)
xlim([0.498 0.499]);


I get a black line which shows the 1kHz sine wave, and a red line which visually deviates in just one sample from the black line (cf. attached files "example.png").
This results in an undesired introduction of audible clicks to the resampled signal.

Output of "pkg list" (Octave on Ubuntu 21.10 with packages from Octave forge):

Package Name  | Version | Installation directory
--------------+---------+-----------------------
     control *|   3.3.1 | /home/marc/octave/control-3.3.1
     general *|   2.1.1 | /home/marc/octave/general-2.1.1
    parallel  |   4.0.1 | /home/marc/octave/parallel-4.0.1
      signal *|   1.4.1 | /home/marc/octave/signal-1.4.1
      struct  |  1.0.17 | /home/marc/octave/struct-1.0.17



Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #52787:  example.png added by None (17KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by arungiridhar (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-24 lostbard StatusNone Fixed
        Assigned toNone lostbard
        Open/ClosedOpen Closed
    2022-02-05 philipnienhuis Attached File- Added bug#61970_fix-from-bug #59149.png, #52807
    2022-02-02 rik5 Carbon-CopyRemoved 72865 -
    2022-02-02 rik5 CategoryNone Octave Package
    2022-02-01 None Attached File- Added example.png, #52787

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code