From d91fc3a5b7b9d7a4ca85882b029fefe2c8daa156 Mon Sep 17 00:00:00 2001 From: John Glover Date: Sat, 16 Feb 2013 15:22:46 +0000 Subject: [mq] Add C++ implementation of TWM --- src/mq/twm.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/mq/twm.h (limited to 'src/mq/twm.h') diff --git a/src/mq/twm.h b/src/mq/twm.h new file mode 100644 index 0000000..e266861 --- /dev/null +++ b/src/mq/twm.h @@ -0,0 +1,19 @@ +#ifndef SIMPL_TWM_H +#define SIMPL_TWM_H + +#include +#include + +#include "base.h" + +namespace simpl +{ + +int best_match(sample freq, std::vector candidates); + +sample twm(Peaks peaks, sample f_min=20.0, + sample f_max=3000.0, sample f_step=10.0); + +} + +#endif -- cgit v1.2.3