aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_opl3.hpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2019-02-23 13:02:03 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2019-02-23 13:02:03 +0300
commit9e01b5b7c1591ac0424dd708ca009a5d4fee1de4 (patch)
treec0f4f91be9cc31c03141bc20d9c200bb9a724f2c /src/adlmidi_opl3.hpp
parentc5f8da70da78110dbbaa74ff4ebce6edf5d04be8 (diff)
downloadlibADLMIDI-9e01b5b7c1591ac0424dd708ca009a5d4fee1de4.tar.gz
libADLMIDI-9e01b5b7c1591ac0424dd708ca009a5d4fee1de4.tar.bz2
libADLMIDI-9e01b5b7c1591ac0424dd708ca009a5d4fee1de4.zip
Small minor correction
- make separated `g_channelsMap` table for panning - replace most of "magic numbers" with macros - move "BEND_COEFFICIENT" macro into the opl3 header
Diffstat (limited to 'src/adlmidi_opl3.hpp')
-rw-r--r--src/adlmidi_opl3.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/adlmidi_opl3.hpp b/src/adlmidi_opl3.hpp
index 8a689ab..a3e237a 100644
--- a/src/adlmidi_opl3.hpp
+++ b/src/adlmidi_opl3.hpp
@@ -29,6 +29,17 @@
#include "adlmidi_private.hpp"
#include "adlmidi_bankmap.h"
+#define BEND_COEFFICIENT 172.4387
+
+#define OPL3_CHANNELS_MELODIC_BASE 0
+#define OPL3_CHANNELS_RHYTHM_BASE 18
+
+#define NUM_OF_CHANNELS 23
+#define NUM_OF_4OP_CHANNELS 6
+#define NUM_OF_2OP_CHANNELS 18
+#define NUM_OF_2x2_CHANNELS 9
+#define NUM_OF_RM_CHANNELS 5
+
/**
* @brief OPL3 Chip management class
*/