Yet Another Synthesizer Engine
Loading...
Searching...
No Matches
globals.hh
Go to the documentation of this file.
1
3
//
4
// YASE Globals
5
//
6
// Copyright (C) 2022 Eric Klavins
7
// This file is part of YASE
8
//
9
// YASE is free software: you can redistribute it and/or modify it under the
10
// terms of the GNU General Public License as published by the Free Software
11
// Foundation, either version 3 of the License, or (at your option) any later
12
// version.
13
//
14
// YASE is distributed in the hope that it will be useful, but WITHOUT ANY
15
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17
// details.
18
//
19
// You should have received a copy of the GNU General Public License along
20
// with YASE. If not, see <https://www.gnu.org/licenses/>.
21
//
22
23
#ifndef YASE_GLOBALS_H
24
#define YASE_GLOBALS_H
25
27
#define UNTIL_INTERRUPTED -1
29
#define FADER_GAIN 20
30
32
#define SAMPLE_RATE 44100
34
#define TS (1.0/SAMPLE_RATE)
36
#define FRAMES_PER_BUFFER 512
38
#define PA_SAMPLE_TYPE paFloat32
40
#define CENT 1.05946
41
#define LN01 2.30258
42
44
#define MIDI_ANY -1
46
#define MIDI_KEYDOWN 144
48
#define MIDI_KEYUP 128
50
#define MIDI_BENDER 224
52
#define MIDI_MOD 176
54
#define MIDI_AFTER_TOUCH 208
56
#define SEQUENCE_REST -1
57
59
#define DEBUG std::cout << __FILE__ << ", "
<< __LINE__ << "\n";
60
62
#define CALL_MEMBER_FN(object,ptrToMember) ((object)->*(ptrToMember))()
63
65
#define ENV_EPS 0.001
66
67
#endif
include
globals.hh
YASE was developed by and is maintained by
Eric Klavins