summaryrefslogtreecommitdiff
path: root/src/simpl/partial_tracking.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/simpl/partial_tracking.h')
-rw-r--r--src/simpl/partial_tracking.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/simpl/partial_tracking.h b/src/simpl/partial_tracking.h
index 964d959..f94886e 100644
--- a/src/simpl/partial_tracking.h
+++ b/src/simpl/partial_tracking.h
@@ -7,6 +7,11 @@ extern "C" {
#include "sms.h"
}
+#include "SndObj.h"
+#include "HammingTable.h"
+#include "IFGram.h"
+#include "SinAnal.h"
+
using namespace std;
namespace simpl
@@ -67,6 +72,27 @@ class SMSPartialTracking : public PartialTracking {
Peaks update_partials(Frame* frame);
};
+// ---------------------------------------------------------------------------
+// SndObjPartialTracking
+// ---------------------------------------------------------------------------
+class SndObjPartialTracking : public PartialTracking {
+ private:
+ sample _threshold;
+ int _num_bins;
+ SndObj* _input;
+ SinAnal* _analysis;
+ sample* _peak_amplitude;
+ sample* _peak_frequency;
+ sample* _peak_phase;
+ void init_peaks();
+
+ public:
+ SndObjPartialTracking();
+ ~SndObjPartialTracking();
+ void max_partials(int new_max_partials);
+ Peaks update_partials(Frame* frame);
+};
+
} // end of namespace Simpl