aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_private.cpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2019-07-01 05:01:55 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2019-07-01 05:01:55 +0300
commit81f905ea76f0efb6ea35331bd1fe476f14f804de (patch)
tree8146611e945a5080db9e7f6fc1805cc77565204b /src/adlmidi_private.cpp
parentd02cf717c2da0344b37db1ffb864d312713f3208 (diff)
downloadlibADLMIDI-81f905ea76f0efb6ea35331bd1fe476f14f804de.tar.gz
libADLMIDI-81f905ea76f0efb6ea35331bd1fe476f14f804de.tar.bz2
libADLMIDI-81f905ea76f0efb6ea35331bd1fe476f14f804de.zip
First working of new database
// not so stable, needs a polishing, however, multibank from embedded 72'th bank (DMXOPL3) works!
Diffstat (limited to 'src/adlmidi_private.cpp')
-rw-r--r--src/adlmidi_private.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/adlmidi_private.cpp b/src/adlmidi_private.cpp
index 1b65214..7905ec3 100644
--- a/src/adlmidi_private.cpp
+++ b/src/adlmidi_private.cpp
@@ -43,9 +43,9 @@ int adlCalculateFourOpChannels(MIDIplay *play, bool silent)
bool rhythmModeNeeded = false;
//Automatically calculate how much 4-operator channels is necessary
-#ifndef DISABLE_EMBEDDED_BANKS
- if(synth.m_embeddedBank == Synth::CustomBankTag)
-#endif
+//#ifndef DISABLE_EMBEDDED_BANKS
+// if(synth.m_embeddedBank == Synth::CustomBankTag)
+//#endif
{
//For custom bank
Synth::BankMap::iterator it = synth.m_insBanks.begin();
@@ -67,25 +67,25 @@ int adlCalculateFourOpChannels(MIDIplay *play, bool silent)
}
}
}
-#ifndef DISABLE_EMBEDDED_BANKS
- else
- {
- //For embedded bank
- for(size_t a = 0; a < 256; ++a)
- {
- size_t insno = banks[play->m_setup.bankId][a];
- size_t div = a / 128;
- if(insno == 198)
- continue;
- ++n_total[div];
- adlinsdata2 ins = adlinsdata2::from_adldata(::adlins[insno]);
- if((ins.flags & adlinsdata::Flag_Real4op) != 0)
- ++n_fourop[div];
- if(div && ((ins.flags & adlinsdata::Mask_RhythmMode) != 0))
- rhythmModeNeeded = true;
- }
- }
-#endif
+//#ifndef DISABLE_EMBEDDED_BANKS
+// else
+// {
+// //For embedded bank
+// for(size_t a = 0; a < 256; ++a)
+// {
+// size_t insno = banks[play->m_setup.bankId][a];
+// size_t div = a / 128;
+// if(insno == 198)
+// continue;
+// ++n_total[div];
+// adlinsdata2 ins = adlinsdata2::from_adldata(::adlins[insno]);
+// if((ins.flags & adlinsdata::Flag_Real4op) != 0)
+// ++n_fourop[div];
+// if(div && ((ins.flags & adlinsdata::Mask_RhythmMode) != 0))
+// rhythmModeNeeded = true;
+// }
+// }
+//#endif
size_t numFourOps = 0;