File: analyser_struct.h

package info (click to toggle)
libvisual-plugins 1%3A0.4.0%2Bdfsg1-13
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,644 kB
  • sloc: ansic: 9,358; sh: 8,809; cpp: 871; makefile: 221; sed: 16
file content (69 lines) | stat: -rw-r--r-- 1,703 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* Libvisual-plugins - Standard plugins for libvisual
 * 
 * Copyright (C) 2000, 2001 Remi Arquier <arquier@crans.org>
 *
 * Authors: Remi Arquier <arquier@crans.org>
 *	    Dennis Smit <ds@nerds-incorporated.org>
 *
 * $Id: analyser_struct.h,v 1.3 2005/12/20 18:49:12 synap Exp $
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

#ifndef _JESS_ANALYSER_STRUCT_H
#define _JESS_ANALYSER_STRUCT_H

#define ZERO 0
#define ONE 1
#define TWO 2
#define THREE 3
#define FOUR 4
#define FIVE 5

#define OUI 1
#define NON 0

#define BPM_MAX 400
#define LEVEL_ONE 3 
#define TOTAL_E 0
#define BASS_E 1
#define MEDIUM_E 2
#define HIGH_E 3

#define T_AVERAGE_SPECTRAL 100
#define T_AVERAGE_DEDT 100
#define T_DEDT 10
#define T_AVERAGE_E 130

struct analyser_struct
{
	float E;
	float E_moyen;
	float dEdt;
	float dEdt_moyen;

	float Ed_moyen[256];
	float dt;

	char dbeat[256]; 

	int reprise;
	int montee;
	int beat;
	int last_time[10];
	int conteur[100]; /* ZERO : sert pour l'affichage de appel JESS */
};

#endif /* _JESS_ANALYSER_STRUCT_H */