gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

filterkit.h (878B)


      1 /**********************************************************************
      2 
      3   resamplesubs.c
      4 
      5   Real-time library interface by Dominic Mazzoni
      6 
      7   Based on resample-1.7:
      8     http://www-ccrma.stanford.edu/~jos/resample/
      9 
     10   Dual-licensed as LGPL and BSD; see README.md and LICENSE* files.
     11 
     12 **********************************************************************/
     13 
     14 /* Definitions */
     15 #include "resample_defs.h"
     16 
     17 /*
     18  * FilterUp() - Applies a filter to a given sample when up-converting.
     19  * FilterUD() - Applies a filter to a given sample when up- or down-
     20  */
     21 
     22 float lrsFilterUp(float Imp[], float ImpD[], UWORD Nwing, BOOL Interp,
     23                   float *Xp, double Ph, int Inc);
     24 
     25 float lrsFilterUD(float Imp[], float ImpD[], UWORD Nwing, BOOL Interp,
     26                   float *Xp, double Ph, int Inc, double dhb);
     27 
     28 void lrsLpFilter(double c[], int N, double frq, double Beta, int Num);