diff align/Align.h @ 781:b651dc5ff555

Add subsequence option all over the place
author Chris Cannam
date Thu, 16 Jul 2020 18:01:50 +0100
parents 32e66fcc4cb7
children e136dd3bb5c6
line wrap: on
line diff
--- a/align/Align.h	Wed Jul 01 15:34:46 2020 +0100
+++ b/align/Align.h	Thu Jul 16 18:01:50 2020 +0100
@@ -115,6 +115,21 @@
      * TransformDrivenDTWAlignment in order to change this setting.
      */ 
     static void setPreferredAlignmentTransform(Transform transform);
+
+    /**
+     * Return true if subsequence alignment is preferred. In this case
+     * the toAlign model is aligned to the best-matching subsequence
+     * of the reference model rather than to the whole reference. This
+     * is only possible for the true built-in alignment types - it's
+     * meaningless for linear or trimmed linear alignment, and for
+     * external program alignment. The default is false.
+     */
+    static bool getUseSubsequenceAlignment();
+
+    /**
+     * Set whether subsequence alignment is to be preferred.
+     */
+    static void setUseSubsequenceAlignment(bool subsequence);
     
     /**
      * Align the "other" model to the reference, attaching an