hydrogen 1.2.3
Globals.h
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 * Copyright(c) 2008-2024 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5 *
6 * http://www.hydrogen-music.org
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY, without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see https://www.gnu.org/licenses
20 *
21 */
22#ifndef H2C_GLOBALS_H
23#define H2C_GLOBALS_H
24
30#define MIDI_OUT_NOTE_MIN 0
31#define MIDI_OUT_NOTE_MAX 127
32#define MIDI_OUT_CHANNEL_MIN -1
33#define MIDI_OUT_CHANNEL_MAX 15
34
35#define MIN_BPM 10
36#define MAX_BPM 400
37
38#define SAMPLE_CHANNELS 2
39
40#define TWOPI 6.28318530717958647692
41
42#define UNUSED( v ) (v = v)
43
44// m_nBeatCounter
45//100,000 ms in 1 second.
46#define US_DIVIDER .000001
47// ~m_nBeatCounter
48
51#endif // H2C_GLOBALS_H