From 9e01b5b7c1591ac0424dd708ca009a5d4fee1de4 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Sat, 23 Feb 2019 13:02:03 +0300 Subject: 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 --- src/adlmidi_opl3.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/adlmidi_opl3.hpp') 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 */ -- cgit v1.2.3