changeset 109:64772a8ea025

Comments; add fillTimestamps back to public interface
author Chris Cannam
date Thu, 11 Apr 2013 12:50:47 +0100
parents 8f6c2f87dc35
children f039eec93d50
files yetilab/vamp/vamppost.yeti
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/yetilab/vamp/vamppost.yeti	Fri Mar 29 22:36:29 2013 +0000
+++ b/yetilab/vamp/vamppost.yeti	Thu Apr 11 12:50:47 2013 +0100
@@ -5,6 +5,10 @@
 
 fillOneSamplePerStep config features =
    (fill' n pending features =
+        // For OneSamplePerStep features, the time is incremented
+        // between process blocks (a process block is one element in
+        // the features list, which is then expanded into the complete
+        // pending list)
         case pending of
         feature::rest:
             stamped = feature with
@@ -20,6 +24,10 @@
 fillFixedSampleRate config rate features =
    (eps = 0.0001;
     fill' n pending features =
+        // For FixedSampleRate features without explicit timestamps,
+        // the time is incremented from the previous *feature* not the
+        // previous process block (i.e. between elements in the
+        // pending list)
         case pending of
         feature::rest:
             n = case feature.timestamp of
@@ -146,6 +154,7 @@
     esac;
 
 {
+fillTimestamps,
 postprocess
 }