From 0e0c15833eb1c2f06cc5e45aaeed37adae288287 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 7 Nov 2012 17:13:37 +0000 Subject: new MTDM implementation from Fons' latest jack_delay implementation git-svn-id: svn://localhost/ardour2/branches/3.0@13394 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/mtdm.h | 54 ++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 26 deletions(-) (limited to 'libs/ardour/ardour/mtdm.h') diff --git a/libs/ardour/ardour/mtdm.h b/libs/ardour/ardour/mtdm.h index 59b504b821..b46e53c0a2 100644 --- a/libs/ardour/ardour/mtdm.h +++ b/libs/ardour/ardour/mtdm.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2003-2008 Fons Adriaensen + Copyright (C) 2003-2012 Fons Adriaensen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,35 +21,37 @@ #include -class MTDM { +class MTDM +{ public: - MTDM (); - - int process (size_t len, float *inp, float *out); - int resolve (); - void invert () { _inv ^= 1; } - int inv () { return _inv; } - double del () { return _del; } - double err () { return _err; } + MTDM (int fsamp); + int process (size_t len, float *inp, float *out); + int resolve (void); + void invert (void) { _inv ^= 1; } + int inv (void) { return _inv; } + double del (void) { return _del; } + double err (void) { return _err; } private: - class Freq { - public: - int p; - int f; - float a; - float xa; - float ya; - float xf; - float yf; - }; - - double _del; - double _err; - int _cnt; - int _inv; - Freq _freq [5]; + class Freq { + public: + int p; + int f; + float xa; + float ya; + float x1; + float y1; + float x2; + float y2; + }; + + double _del; + double _err; + float _wlp; + int _cnt; + int _inv; + Freq _freq [13]; }; #endif /* __libardour_mtdm_h__ */ -- cgit v1.2.3