# How to write a lowpass filter plug-in process block function?

**URL:** <https://forum.juce.com/t/how-to-write-a-lowpass-filter-plug-in-process-block-function/32327>\
**Category:** Audio Plugins\
**Created:** [March 18, 2019, 10:30am UTC](https://forum.juce.com/t/how-to-write-a-lowpass-filter-plug-in-process-block-function/32327 "2019-03-18T10:30:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YangangCao](https://avatars.discourse-cdn.com/v4/letter/y/3bc359/32.png) [@YangangCao](https://forum.juce.com/u/YangangCao)\
**Post date:** [March 18, 2019, 10:30am UTC](https://forum.juce.com/t/how-to-write-a-lowpass-filter-plug-in-process-block-function/32327/1 "2019-03-18T10:30:00Z")

</div>

Hi All  
I’m a new guy about C++ and JUCE, I wrote a JUCE project about lowpass filter plug-in which I think it’s classical. I read JUCE tutorials and still confused a lot, I think maybe a suitable example code will disabuse me.

I know two ways about digital signal processing: sample by sample and block, now I have no idea about writing a sample by sample method in buffer, the main problem is how to write the function with definition like `void LowpassAudioProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuffer&)`, can anyone show your code, use `dsp` in module or anyway. thx a lot.🙂

---

<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:** [March 18, 2019, 11:50am UTC](https://forum.juce.com/t/how-to-write-a-lowpass-filter-plug-in-process-block-function/32327/2 "2019-03-18T11:50:04Z")

</div>

Have a look at @daniel’s open-source EQ:

> <https://github.com/ffAudio/Frequalizer/blob/852f2d13186c653d8b69296581c1ea985c894e19/Source/FrequalizerProcessor.cpp#L278>

---

<div class="post-metadata">

**Author:** ![YangangCao](https://avatars.discourse-cdn.com/v4/letter/y/3bc359/32.png) [@YangangCao](https://forum.juce.com/u/YangangCao)\
**Post date:** [March 18, 2019, 1:18pm UTC](https://forum.juce.com/t/how-to-write-a-lowpass-filter-plug-in-process-block-function/32327/4 "2019-03-18T13:18:41Z")

</div>

thx, you guy and @daniel.
