# Example of filter with 6db/octave

**URL:** <https://forum.juce.com/t/example-of-filter-with-6db-octave/47571>\
**Category:** Audio Plugins\
**Created:** [August 27, 2021, 5:43pm UTC](https://forum.juce.com/t/example-of-filter-with-6db-octave/47571 "2021-08-27T17:43:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![5amx](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/5amx/32/15089_2.png) [@5amx](https://forum.juce.com/u/5amx)\
**Post date:** [August 27, 2021, 5:43pm UTC](https://forum.juce.com/t/example-of-filter-with-6db-octave/47571/1 "2021-08-27T17:43:30Z")

</div>

I want to implement a high pass filter with 6db/octave. As far I know, JUCE filters are 12db/octave by default. Can anybody help to figure out this? my code currently looks like this.

header:

```auto
juce::dsp::ProcessorDuplicator<juce::dsp::IIR::Filter< **float** >, juce::dsp::IIR::Coefficients< **float** >> filter1;

```

cpp:

```auto
*filter1.state = *juce::dsp::IIR::Coefficients< **float** >::makeHighPass(mSampleRate, 20, 0.7);

**auto** audioBlock = juce::dsp::AudioBlock< **float** > (buffer);
**auto** context = juce::dsp::ProcessContextReplacing< **float** > (audioBlock);

filter1.process(context);

```

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ImJimmi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/imjimmi/32/10843_2.png) [@ImJimmi](https://forum.juce.com/u/ImJimmi)\
**Post date:** [August 29, 2021, 10:28am UTC](https://forum.juce.com/t/example-of-filter-with-6db-octave/47571/2 "2021-08-29T10:28:06Z")

</div>

You can use [`makeFirstOrderHighPass`](https://docs.juce.com/master/structdsp_1_1IIR_1_1Coefficients.html#a815236aaf819ee851661ed82da03e263) which should be -6dB/octave.
