Mercurial > hg > vamp-plugin-sdk
changeset 394:a69901aa85d2
Algorithm includes for std::min, etc
author | Chris Cannam |
---|---|
date | Tue, 02 Jun 2015 14:18:27 +0100 |
parents | 126a60e6dc4e |
children | 96cdf661d538 |
files | examples/AmplitudeFollower.cpp examples/ZeroCrossing.cpp vamp-sdk/FFT.h |
diffstat | 3 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/AmplitudeFollower.cpp Wed May 20 16:51:52 2015 +0100 +++ b/examples/AmplitudeFollower.cpp Tue Jun 02 14:18:27 2015 +0100 @@ -41,6 +41,7 @@ #include <string> #include <vector> #include <iostream> +#include <algorithm> using std::string; using std::vector;
--- a/examples/ZeroCrossing.cpp Wed May 20 16:51:52 2015 +0100 +++ b/examples/ZeroCrossing.cpp Tue Jun 02 14:18:27 2015 +0100 @@ -42,6 +42,7 @@ using std::endl; #include <cmath> +#include <algorithm> ZeroCrossing::ZeroCrossing(float inputSampleRate) : Plugin(inputSampleRate),
--- a/vamp-sdk/FFT.h Wed May 20 16:51:52 2015 +0100 +++ b/vamp-sdk/FFT.h Tue Jun 02 14:18:27 2015 +0100 @@ -60,6 +60,7 @@ public: /** * Calculate a forward transform of size n. + * n must be a power of 2, greater than 1. * * ri and ii must point to the real and imaginary component arrays * of the input. For real input, ii may be NULL. @@ -75,6 +76,7 @@ /** * Calculate an inverse transform of size n. + * n must be a power of 2, greater than 1. * * ri and ii must point to the real and imaginary component arrays * of the input. For real input, ii may be NULL.