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

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

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


From: anonymous
Subject: [Octave-bug-tracker] [bug #61970] [octave forge] (signal) Resampling from 44100 to 24000 Hz introduces strange and unexpected artifacts
Date: Tue, 1 Feb 2022 04:30:39 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?61970>

                 Summary: [octave forge] (signal) Resampling from 44100 to
24000 Hz introduces strange and unexpected artifacts
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 01 Feb 2022 09:30:37 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Marc René Schädler
        Originator Email: suaefar@googlemail.com
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 01 Feb 2022 09:30:37 AM UTC  Name: example.png  Size: 17KiB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=52787>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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