diff src/MatchPipeline.h @ 160:581b1118ec28 refactors

Permit overriding reference frequency for second input in MatchPipeline
author Chris Cannam
date Thu, 29 Jan 2015 17:07:05 +0000
parents 6914a6a01ffc
children d23dad16d6f9
line wrap: on
line diff
--- a/src/MatchPipeline.h	Thu Jan 29 17:02:48 2015 +0000
+++ b/src/MatchPipeline.h	Thu Jan 29 17:07:05 2015 +0000
@@ -35,11 +35,18 @@
      *      -> Features
      *          -> Conditioned features
      *              -> Matcher
+     *
+     * Only one set of FeatureExtractor::Parameters is provided; this
+     * contains a single reference frequency, but it's possible the
+     * two input streams may have different tuning frequencies. A
+     * separate frequency for the second input can be provided here as
+     * an optional parameter if needed.
      */
     MatchPipeline(FeatureExtractor::Parameters feParams,
 		  FeatureConditioner::Parameters fcParams,
                   DistanceMetric::Parameters dParams,
-		  Matcher::Parameters matchParams);
+		  Matcher::Parameters matchParams,
+                  double secondReferenceFrequency = 0.0);
 
     ~MatchPipeline();