aboutsummaryrefslogtreecommitdiff
path: root/xtract/xtract_helper.h
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2007-12-29 17:33:17 +0000
committerJamie Bullock <jamie@postlude.co.uk>2007-12-29 17:33:17 +0000
commiteb32acabd365e47e36863ee737505db463bd9f91 (patch)
tree5258b5b6e2ae35fc3c72b356f6e26f37660bf6c1 /xtract/xtract_helper.h
parent2e66bd6092fe93ca7fa953c4af9d0e16bbf69905 (diff)
downloadLibXtract-eb32acabd365e47e36863ee737505db463bd9f91.tar.gz
LibXtract-eb32acabd365e47e36863ee737505db463bd9f91.tar.bz2
LibXtract-eb32acabd365e47e36863ee737505db463bd9f91.zip
- PD example brought in line with new delta features and subframe function
- subframe-test.pd added - fix to a_blockswap~.pd
Diffstat (limited to 'xtract/xtract_helper.h')
-rw-r--r--xtract/xtract_helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xtract/xtract_helper.h b/xtract/xtract_helper.h
index 31a2183..645f1cd 100644
--- a/xtract/xtract_helper.h
+++ b/xtract/xtract_helper.h
@@ -57,6 +57,9 @@ int xtract_windowed(const float *data, const int N, const void *argv, float *res
* \param *argv a pointer to the argument vector to be passed to the feature extraction function as determined by feature
* \param *result a pointer to the 'packed' results of the feature calculation. This may be passed in as *data to xtract_features_from_subframes() to calculate further features on the subframes, or xtract_difference_vector(), to get the difference between the subframes.
*
+ *
+ * It is important to ensure that any _init_*() functions that are called in preparation for functions that are called on subframes are given the subframe size as 'N', and not the frame size. i.e. if xtract_features_from_subframes() is called with N=64, and feature=XTRACT_SPECTRUM, then xtract_init_fft() should be called with N=32.
+ *
*/
int xtract_features_from_subframes(const float *data, const int N, const int feature, const void *argv, float *result);