How to Implement an FIR Filter in C++ [DSP #15]

preview_player
Показать описание
✅ Please subscribe to WolfSound to let the little Wolf 🐺 grow:

Hi, my name is Jan Wilczek and I am an audio programmer and a researcher. Welcome to WolfSound!

WolfSound enables everybody to learn about audio programming!

ABOUT THE VIDEO

In this video, I show you how to implement a plain (unoptimized) FIR filter in C++.

Learn how to
💡 Rewrite the FIR filter convolution formula,
💡 Pad the signals with zeros correctly, and
💡 Implement it in C++.

In case of any doubt in understanding, please, refer to the article above or ask a question in the comments 🙂

Video edited by Vadzim Vezhnavets.

ABOUT ME

FOLLOW WOLFSOUND ONLINE

TIME CODES

00:00 Introduction
00:22 What is an FIR filter?
00:53 Mathematical definition of convolution
01:33 Practical convolution formula
02:08 How to pad the input signal with zeros?
03:38 FIR filter implementation
06:41 FIR filtering test
07:34 Summary

#dsp #cpp
Рекомендации по теме
Комментарии
Автор

Good shit bro! I needed to get re-upped on my convolution and you provided GREAT easy to understand (from an engineers perspective) content.

MoXyiD
Автор

Thanks for putting this up! Great help😊

asthasingh
Автор

very thorough explanation, thanks 👍 I wish you well in your marketing agenda (it is much more complex than FIN Filter in C++ I presume 🤣)

alexeykononov
Автор

Why not use std::vector instead of raw C-style arrays?

MatkatMusic
Автор

Thanks! Can you do an IIR tutorial as well?

nickst
Автор

Interesting that you used the sound response of a room to somehow make the music match. I think this needs a more generalised explanation because most non DSP mathematicians won't have understood IMO :)

robc
Автор

Hello! Does it make any sense to write it in assembly? Will we have any increase in performance or will this task be too complex and difficult?I mean standard x64 architecture - a usual laptop (not DSP or MCU)

AndriiAndrosovych-ue
Автор

If I wanted to create an FIR low pass filter at a specific frequency how could I change this code to implement a desired corner frequency?

isaiahclemons
Автор

How are u implementing sound with the code please can I know this is not domain i am intrested please any one ???

athuldas
Автор

Can you explain Hilbert transform in c++ too?

sadewosat
Автор

Super helpful video thank you very much!!

danmiller
Автор

Also it is a fundamental filter for Video coding ;)

farhatibrahim
Автор

Damn, that's a pretty crazy result for such a simple filter. I am a bit puzzled how we get from the impulse response to the coefficient list (dsp noob here), but will look into your code to figure out those details.

bigmistqke
Автор

6:58 I thought you were playing Nokia ringtone

heddshot