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

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

[Octave-bug-tracker] [bug #59149] Resampling from 22050 to 48000 Hz intr


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #59149] Resampling from 22050 to 48000 Hz introduces a strange and unexpected artifacts
Date: Mon, 21 Sep 2020 23:25:12 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

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

octave:2> pkg install signal -forge
For information about changes from previous versions of the signal package,
run 'news signal'.
octave:3> pkg load control signal
octave:4>  fs = 22050
fs = 22050
octave:5> s = sin(linspace(0,1000.*2*pi,fs+1));
octave:6> sr = resample(s,48000,fs);
octave:7> whos sr
Variables visible from the current scope:

variables in scope: top scope

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  ===== 
        sr          1x48003                 384024  double

Total is 48003 elements using 384024 bytes

octave:8> whos s
Variables visible from the current scope:

variables in scope: top scope

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  ===== 
        s           1x22051                 176408  double

Total is 22051 elements using 176408 bytes

octave:9> pkg list
Package Name  | Version | Installation directory
--------------+---------+-----------------------
     control *|   3.2.0 | /home/dima/octave/control-3.2.0
      signal *|   1.4.1 | /home/dima/octave/signal-1.4.1
octave:10> which upfirdn
'upfirdn' is a function from the file
/home/dima/octave/signal-1.4.1/x86_64-pc-linux-gnu-api-v55/upfirdn.oct

Dmitri.
-- 


    _______________________________________________________

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]