1: /*
2: * Guitar-ZyX(tm)::MasterControlProgram - portable guitar F/X controller
3: * Copyright (C) 2009 Douglas McClendon
4: *
5: * This program is free software: you can redistribute it and/or modify
6: * it under the terms of the GNU General Public License as published by
7: * the Free Software Foundation, version 3 of the License.
8: *
9: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program. If not, see <http://www.gnu.org/licenses/>.
16: */
17: /*
18: #############################################################################
19: #############################################################################
20: ##
21: ## gzmcpc::metrognome: metrognome functions
22: ##
23: #############################################################################
24: ##
25: ## Copyright 2008-2009 Douglas McClendon <dmc AT filteredperception DOT org>
26: ##
27: #############################################################################
28: #############################################################################
29: #
30: */
31:
32:
33:
34:
35: #include <nds.h>
36:
37: #include <maxmod9.h>
38:
39:
40: #include "metrognome.h"
41:
42: #include "sound.h"
43:
44: #include "time.h"
45:
46:
47: #include "sounds.h"
48:
49: #include "sounds_bin.h"
50:
51:
52:
53:
54: int astrobe_bpm = ASTROBE_DEFAULT_BPM;
55: int astrobe_enabled = 0;
56:
57: time_val next_metrognome_play = {0, 0};
58:
59:
60:
61:
62: void play_metrognome(void) {
63:
64: if (astrobe_enabled) {
65: // play metrognome
66: mmEffectEx(&sounds[SFX_METROGNOME]);
67: }
68:
69: }
70: