22 May '13 - 15:48 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: [C#] How to filter out all frequencies below 30 Hz? (SOLVED)  (Read 3741 times)
frozzie
Posts: 24


« on: 28 Aug '09 - 12:10 »
Reply with quoteQuote

I'm using BASS_BFX_LPF to filter out everything above 15 KHz.
But how do i filter out everything below 30 Hz with let's say -32 db?
A BASS_BFX_HPF would be great ;-)
« Last Edit: 19 Sep '09 - 15:50 by frozzie » Logged
ken
Posts: 630


« Reply #1 on: 2 Sep '09 - 18:08 »
Reply with quoteQuote

I'm using BASS_BFX_LPF to filter out everything above 15 KHz.
But how do i filter out everything below 30 Hz with let's say -32 db?
A BASS_BFX_HPF would be great ;-)

I asked for that a while ago, and I still need it  Smiley
Logged
(: JOBnik! :)
Posts: 984


« Reply #2 on: 4 Sep '09 - 12:10 »
Reply with quoteQuote

Hi Grin

On this weekend I wanted to include all BiQuad filters in BASS_FX, but unfortunately my motherboard has died yesterday Sad and will get replacement only in about 2 weeks from now... after my system will work again, I'll add the filters Smiley
Logged
frozzie
Posts: 24


« Reply #3 on: 5 Sep '09 - 19:28 »
Reply with quoteQuote

Sounds freaking great! Smiley
Logged
(: JOBnik! :)
Posts: 984


« Reply #4 on: 17 Sep '09 - 10:00 »
Reply with quoteQuote

Hi Grin

Did you test the latest biquad filters already? Smiley
Please post your feedbacks, so I can make it final release Wink
Logged
frozzie
Posts: 24


« Reply #5 on: 17 Sep '09 - 11:31 »
Reply with quoteQuote

Since the functions "isn't supported" in Bass.Net i'm on the wrong side of the glass so to speak, i see all the goodies but can't taste them :-(
Unfortunately i don't have the right knowledge to use them.
Logged
radio42
Posts: 4012


« Reply #6 on: 17 Sep '09 - 12:14 »
Reply with quoteQuote

I have added the new FX stuff to a pre-version off BASS.NET, which can be downloaded here:
www.un4seen.com/filez/4/Bass24.Net_pre.zip

Pls let us know, if you find anything...
Logged
frozzie
Posts: 24


« Reply #7 on: 17 Sep '09 - 12:52 »
Reply with quoteQuote

Thanks guys (JOBnik & radio42)
I'll test the filters and leave a report in this thread later.
For now atleast the HPF is working nicely!
Logged
frozzie
Posts: 24


« Reply #8 on: 17 Sep '09 - 16:27 »
Reply with quoteQuote

What am i missing?
The code below do filter out the frequencies above 250 Hz, but also lowers the volume by -40 db or more.

If i raise the fCutoffFreq to let's say 4000 Hz the i volume starts to come back.

The BASS_FX_BQF_HIGHPASS works as i expected.

private BASS_BFX_BQF _bqf1 = new BASS_BFX_BQF();
private int _bqfFX1;
...
stream = Bass.BASS_RecordStart(44100, 2, 0, null, IntPtr.Zero);

int _bqfFX1 = Bass.BASS_ChannelSetFX(stream, BASSFXType.BASS_FX_BFX_BQF, 0);
_bqf1.fCutoffFreq = 250f;
_bqf1.lFilter = BASSFXBQF.BASS_FX_BQF_LOWPASS;
Bass.BASS_FXSetParameters(_bqfFX1, _bqf1);
Logged
radio42
Posts: 4012


« Reply #9 on: 17 Sep '09 - 16:59 »
Reply with quoteQuote

But that is pretty normal ;-)
All the 'energy' contained in the frequencies you are cutting/removing will lower the preceived listening volume.

The same actually happens with an EQ:
If you increase or lower a certain frequency band - the overall volume will be increased or lowerd as well.
Logged
frozzie
Posts: 24


« Reply #10 on: 17 Sep '09 - 17:05 »
Reply with quoteQuote

So after applying the filter i have to gain the signal ~40 db?
The BASS_FX_LPF doesn't behave like that.

And of course, i know that it's normal that the overall volume is getting
lower when filter out frequencies. ;-)
« Last Edit: 17 Sep '09 - 17:23 by frozzie » Logged
(: JOBnik! :)
Posts: 984


« Reply #11 on: 17 Sep '09 - 17:51 »
Reply with quoteQuote

Hi Grin

I didn't set any default values for BASS_BFX_BQF parameters
so, using HPF, you have to set fBandwidth/fQ as well Wink

but I did set the lChannel param with BASS_BFX_CHANNONE
Logged
radio42
Posts: 4012


« Reply #12 on: 17 Sep '09 - 18:07 »
Reply with quoteQuote

Quote
So after applying the filter i have to gain the signal ~40 db?
The BASS_FX_LPF doesn't behave like that.
I don't know the details about how Jobby implemented things, but I guess...
That in your example you are just cutting more frequencies with the one filter than with the other one.
And that's simply why it might be more noticeable.

I guess it will also be very hard to measure, predict or even calculate the gain you need to apply in order to get the same loudness as before.
And in addition any gain might also lead to a distortion of the left-over frequencies.
Logged
(: JOBnik! :)
Posts: 984


« Reply #13 on: 17 Sep '09 - 22:37 »
Reply with quoteQuote

Hi Grin

Here's an update to try with some changes:
http://www.jobnik.org/files/bass_fx.zip
« Last Edit: 18 Sep '09 - 08:20 by (: JOBnik! :) » Logged
radio42
Posts: 4012


« Reply #14 on: 18 Sep '09 - 07:30 »
Reply with quoteQuote

The link doesn't seem to work?
Logged
(: JOBnik! :)
Posts: 984


« Reply #15 on: 18 Sep '09 - 08:20 »
Reply with quoteQuote

Hi Grin

The link is updated with .zip archive Smiley
Logged
frozzie
Posts: 24


« Reply #16 on: 18 Sep '09 - 08:28 »
Reply with quoteQuote

Still no go :-(
            _bqf1.fCutoffFreq = 250.0f;
            _bqf1.lChannel = BASSFXChan.BASS_BFX_CHANALL;
            _bqf1.lFilter = BASSFXBQF.BASS_FX_BQF_LOWPASS;
            Bass.BASS_FXSetParameters(_bqfFX1, _bqf1);
Logged
(: JOBnik! :)
Posts: 984


« Reply #17 on: 18 Sep '09 - 08:50 »
Reply with quoteQuote

Hi Grin

Please redownload the archive, it should be fine now Smiley
Logged
frozzie
Posts: 24


« Reply #18 on: 18 Sep '09 - 09:12 »
Reply with quoteQuote

Weeeeee... now it works!

Thanks for the tremendous (yep i Googled that word) support!
Logged
(: JOBnik! :)
Posts: 984


« Reply #19 on: 20 Sep '09 - 11:57 »
Reply with quoteQuote

Hi Grin

You're welcome Smiley
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines