help-octave
[Top][All Lists]
Advanced

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

Re: [Signal PKG] limited slope


From: Maynard Wright
Subject: Re: [Signal PKG] limited slope
Date: Thu, 14 Dec 2017 05:41:29 -0800
User-agent: KMail/4.13.3 (Linux/3.16.0-30-generic; KDE/4.13.3; i686; ; )

On Thursday, December 14, 2017 08:39:08 AM Renato S. Yamane wrote:
> Hi,
> 
> Regarding the code below, someone have an idea why I have this limit
> in low frequencies?
> 
> Please, see the frequency response on image available in:
> https://ibb.co/cgwOqG
> 
> Detail: when I use a crest factor of 12dB instead 6dB, I donĀ“t have
> this problem.
> 
> ==============
> pkg load signal;
> pkg load ltfat;
> 
> sampling_rate = 44100;
> lenght = 30;
> hpf = 400;
> lpf = 4000;
> crest_factor = 6;
> 
> typenoise = noise((lenght)*sampling_rate, 1, 'pink');
> [b,a] = butter(2, [hpf/(sampling_rate/2), lpf/(sampling_rate/2)]);
> filtered = filter(b, a, typenoise);
> filtered = filtered / (rms(filtered) / 10^(-crest_factor/20));
> audiowrite ('signal.wav', filtered, 44100);
> ==============
> 
> Best regards,
> Renato
> 

At first glance, I notice that "length" is misspelled as "lenght" in the 
function noise().

Best regards,

Maynard




reply via email to

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