Debian Codegraph @

plugins/actor/JESS/analyser_struct.h

raw
1 /* Libvisual-plugins - Standard plugins for libvisual
2 *
3 * Copyright (C) 2000, 2001 Remi Arquier <[email protected]>
4 *
5 * Authors: Remi Arquier <[email protected]>
6 * Dennis Smit <[email protected]>
7 *
8 * $Id: analyser_struct.h,v 1.3 2005/12/20 18:49:12 synap Exp $
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24
25 #ifndef _JESS_ANALYSER_STRUCT_H
26 #define _JESS_ANALYSER_STRUCT_H
27
28 #define ZERO 0
29 #define ONE 1
30 #define TWO 2
31 #define THREE 3
32 #define FOUR 4
33 #define FIVE 5
34
35 #define OUI 1
36 #define NON 0
37
38 #define BPM_MAX 400
39 #define LEVEL_ONE 3
40 #define TOTAL_E 0
41 #define BASS_E 1
42 #define MEDIUM_E 2
43 #define HIGH_E 3
44
45 #define T_AVERAGE_SPECTRAL 100
46 #define T_AVERAGE_DEDT 100
47 #define T_DEDT 10
48 #define T_AVERAGE_E 130
49
50 struct analyser_struct
51 {
52 float E;
53 float E_moyen;
54 float dEdt;
55 float dEdt_moyen;
56
57 float Ed_moyen[256];
58 float dt;
59
60 char dbeat[256];
61
62 int reprise;
63 int montee;
64 int beat;
65 int last_time[10];
66 int conteur[100]; /* ZERO : sert pour l'affichage de appel JESS */
67 };
68
69 #endif /* _JESS_ANALYSER_STRUCT_H */