aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_opl3.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-09-13 16:06:24 +0300
committerWohlstand <admin@wohlnet.ru>2020-09-13 16:06:24 +0300
commit10ee01dbcab85c3b2828b0551e017a2c2963a41b (patch)
tree750d34ca7999ecd9d65559f26e3f81befbffd691 /src/adlmidi_opl3.cpp
parent069921e52a04c98d98276ae1f98e700d160f525c (diff)
downloadlibADLMIDI-10ee01dbcab85c3b2828b0551e017a2c2963a41b.tar.gz
libADLMIDI-10ee01dbcab85c3b2828b0551e017a2c2963a41b.tar.bz2
libADLMIDI-10ee01dbcab85c3b2828b0551e017a2c2963a41b.zip
Small rename of AIL frequency tables
Diffstat (limited to 'src/adlmidi_opl3.cpp')
-rw-r--r--src/adlmidi_opl3.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp
index 523ab53..1cf83e0 100644
--- a/src/adlmidi_opl3.cpp
+++ b/src/adlmidi_opl3.cpp
@@ -709,7 +709,7 @@ static inline double s_hmiFreq(double tone)
* Audio Interface Library frequency model *
***************************************************************/
-static const uint_fast16_t mo_freqtable[] = {
+static const uint_fast16_t s_ail_freqtable[] = {
0x02b2, 0x02b4, 0x02b7, 0x02b9, 0x02bc, 0x02be, 0x02c1, 0x02c3,
0x02c6, 0x02c9, 0x02cb, 0x02ce, 0x02d0, 0x02d3, 0x02d6, 0x02d8,
0x02db, 0x02dd, 0x02e0, 0x02e3, 0x02e5, 0x02e8, 0x02eb, 0x02ed,
@@ -736,7 +736,7 @@ static const uint_fast16_t mo_freqtable[] = {
0xfe9e, 0xfea1, 0xfea3, 0xfea5, 0xfea8, 0xfeaa, 0xfead, 0xfeaf
};
-static const uint_fast8_t mo_note_octave[] = {
+static const uint_fast8_t s_ail_note_octave[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
@@ -751,7 +751,7 @@ static const uint_fast8_t mo_note_octave[] = {
0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07
};
-static const uint_fast8_t mo_note_halftone[] = {
+static const uint_fast8_t s_ail_note_halftone[] = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0a, 0x0b, 0x00, 0x01, 0x02, 0x03,
0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b,
@@ -801,9 +801,9 @@ static inline double s_ailFreq(double tone)
pitch -= 12 * 16;
}
- halftones = (mo_note_halftone[pitch >> 4] << 4) + (pitch & 0x0f);
- freq = mo_freqtable[halftones];
- octave = mo_note_octave[pitch >> 4];
+ halftones = (s_ail_note_halftone[pitch >> 4] << 4) + (pitch & 0x0f);
+ freq = s_ail_freqtable[halftones];
+ octave = s_ail_note_octave[pitch >> 4];
if((freq & 0x8000) == 0)
{