summaryrefslogtreecommitdiff
path: root/heuristics.h
blob: a01d1f749b37d9dd7d82ca32c76b9dbd3e2ef878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 );