File: comp_chroma.h

package info (click to toggle)
audacity 1.3.12-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 41,528 kB
  • ctags: 30,395
  • sloc: cpp: 166,518; ansic: 105,310; sh: 24,447; lisp: 7,842; makefile: 1,701; python: 240; perl: 31; xml: 8
file content (24 lines) | stat: -rw-r--r-- 602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include	<stdio.h>
#include	<stdlib.h>
#include	<string.h>
#include	<ctype.h>
#include	<math.h>

#define SILENCE_THRESHOLD 0.001
#define SILENCE_DISTANCE 16.0

/*				NORM_CHROMA
 *
 * This function normalizes the chroma for each frame of the
 * chrom_energy to mean 0 and std. dev. 1.
 */
void norm_chroma( int len, float *chrom_energy );

/*				GEN_DIST
 *
 * This function generates the Euclidean distance for points i
 * and j in two chroma vectors for use with dynamic time warping of 
 * the chroma vectors.
 */
float gen_dist(int i, int j, float *chrom_energy1, 
		       float *chrom_energy2 );