/
globals.h
69 lines (54 loc) · 1.58 KB
/
globals.h
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
/* Copyright 2009 chee rabbits ::
prettychips 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 3 of the License, or
(at your option) any later version.
prettychips 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 prettychips. If not, see <http://www.gnu.org/licenses/>.
*/
#include "adsr.h"
#include <nds.h>
#define NOTEA 440
#define TWELFTHROOT 1.0594630943593
// For calculating the notes.
extern u16 notes[13];
extern u16 keys[8];
extern u16 root;
extern int octave;
extern int curkey;
// Rhythm.
extern int bpm;
extern int hpm;
extern int lpm;
// for setting a PSG
extern int ids[8];
extern int wCycle;
extern u8 nVolume;
extern u8 nPan;
// other
extern int cscreen;
extern bool trem_on;
extern bool rel_on;
extern bool noteHeld[8];
extern int volbent;
extern float pitching;
extern float ppeak;
extern u8 vpeak;
extern float whammy;
extern int trem_speed;
extern u8 rlength;
extern int bg3;
extern int bg3sub;
extern u8 volumes[8];
extern u8 myPan[8];
extern bool wOval;
extern bool fTri;
extern int wovalate;
extern int ftriangulate;
extern float noted[8];
extern int drone;
extern ADSR *sound_envelope[8];