goodies 

Here you can find the c++ implementations of some typical DSP entities.

You are free to use the following source code for your personal projects.
You can use it within your commercial projects too.

The usual disclaimer applies: I don't give you any express or implied warranties about this source code, including without limitation the warranty that it is free of defects, or that it will work on every system, although I did my best to make it portable. All the source code available in this page is provided "as is".

NOTE: If you modify this source code in some useful way to the community, please make me know and I'll make it available to everybody.


math inlines


The MathInlines namespace contains some useful math routines, implemented inline for best performance.
  • Linear interpolation routines
  • ms, hz, samples conversions
  • Decimal and fast integer log2(x) operation
  • Fastest isPowerOf2 routine
  • Fast integer min/max functions
Here you find the online documentation.


circular buffer


The CircularBuffer class implements a standard circular buffer.
  • Template based, manages any sample type
  • Manages both single sample and block processing
Here you find the online documentation.


running average


The RuninngAverage class implements a running average filter.
  • Template based, manages any sample type
  • Simplified task: just feed samples in and get the running average
Here you find the online documentation.