Author Topic: How to do a simple bass cut?  (Read 143 times)

martin71

  • Posts: 10
How to do a simple bass cut?
« on: 7 Apr '18 - 21:11 »
I don't understand how to filter the bass from a channel. I have seen an equalizer example in Visual Basic but I'm using PureBasic and I don't know how to convert this. Can someone help?

martin71

  • Posts: 10
Re: How to do a simple bass cut?
« Reply #1 on: 8 Apr '18 - 19:47 »
I figured it out how to convert this  ;D

martin71

  • Posts: 10
Re: How to do a simple bass cut?
« Reply #2 on: 12 Apr '18 - 12:52 »
I know now how to apply the BASS_DX8_PARAMEQ parameters in Purebasic. But I still don't know what the best parameters are for filtering out the bass (beats).  Can anyone help, or can this only be done with the BASS_FX add-on?

Ian @ un4seen

  • Administrator
  • Posts: 20719
Re: How to do a simple bass cut?
« Reply #3 on: 12 Apr '18 - 17:26 »
For a bass cut effect, you would probably want to use a high-pass filter. BASS doesn't provide such an effect itself, but the BASS_FX add-on does via its BASS_FX_BFX_BQF option. For example, you could do something like this:

Code: [Select]
DWORD fx = BASS_ChannelSetFX(stream, BASS_FX_BFX_BQF, 0); // add a filter to a stream
BASS_BFX_BQF param;
param.lFilter = BASS_BFX_BQF_HIGHPASS; // high-pass filter
param.fCenter = 100; // 100 Hz cutoff frequency
param.fBandwidth = 0;
param.fQ = 0.7;
param.lChannel = BASS_BFX_CHANALL;
BASS_FXSetParameters(fx, &param); // apply the filter parameters

That's in C/C++ rather than Purebasic, but hopefully it isn't too hard to translate (it will be much the same in any language).

martin71

  • Posts: 10
Re: How to do a simple bass cut?
« Reply #4 on: 12 Apr '18 - 21:16 »
Thanks a lot Ian!