summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/mtdm.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-11-07 17:13:37 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-11-07 17:13:37 +0000
commit0e0c15833eb1c2f06cc5e45aaeed37adae288287 (patch)
treeaa727af8f62822a3e562415230333ec24d0de920 /libs/ardour/ardour/mtdm.h
parenta8cf2aa4f95f1b6c81b5d1e970623c8cfcf0c584 (diff)
new MTDM implementation from Fons' latest jack_delay implementation
git-svn-id: svn://localhost/ardour2/branches/3.0@13394 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/mtdm.h')
-rw-r--r--libs/ardour/ardour/mtdm.h54
1 files changed, 28 insertions, 26 deletions
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 <fons@kokkinizita.net>
+ Copyright (C) 2003-2012 Fons Adriaensen <fons@kokkinizita.net>
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 <stddef.h>
-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__ */