From 8d957f068792b4ee55f807930c975699c29922a2 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 16 Sep 2008 15:40:46 +0000 Subject: Kickoff --- heuristics.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 heuristics.h (limited to 'heuristics.h') diff --git a/heuristics.h b/heuristics.h new file mode 100644 index 0000000..a01d1f7 --- /dev/null +++ b/heuristics.h @@ -0,0 +1,13 @@ +// Gets the two longest consecutive gestures found +// in frames. -1 in off[ab] means no gesture found + +// Here what counts: the bigger abs(dx[ab]), the longer the gesture +// the bigger dy[ab]/dx[ab], the slower the gesture +void heuristics_getGestures( int const amount, int const * const values, + int *offa, int *dxa, int *dya, int *dda, + int *offb, int *dxb, int *dyb, int *ddb ); + +// Calculate an "energy" level contained in vu bars. +// to soften spikes, we correlate neighbouring bars +int heuristics_getEnergy( int const amount, int const * const values ); + -- cgit v1.2.3