diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-11-28 04:36:52 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-11-28 04:36:52 +0300 |
commit | aafd86539eb4e2441899190fda191deda3528386 (patch) | |
tree | 285aa66b54c26cb1d6fbec39ea011bc29744e168 /src/adlmidi_private.cpp | |
parent | 617fc1592e56dd7ae4800363886346da3f4d2eee (diff) | |
download | libADLMIDI-aafd86539eb4e2441899190fda191deda3528386.tar.gz libADLMIDI-aafd86539eb4e2441899190fda191deda3528386.tar.bz2 libADLMIDI-aafd86539eb4e2441899190fda191deda3528386.zip |
Give 4 four-op channels
When melodic set is completely 2-operator but has some 4-op percussions
Experimental fix for #35
Diffstat (limited to 'src/adlmidi_private.cpp')
-rw-r--r-- | src/adlmidi_private.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi_private.cpp b/src/adlmidi_private.cpp index f06e30e..1fcf0b2 100644 --- a/src/adlmidi_private.cpp +++ b/src/adlmidi_private.cpp @@ -45,7 +45,7 @@ int adlRefreshNumCards(ADL_MIDIPlayer *device) play->m_setup.NumFourOps = (n_fourop[0] >= 128 * 7 / 8) ? play->m_setup.NumCards * 6 - : (n_fourop[0] < 128 * 1 / 8) ? 0 + : (n_fourop[0] < 128 * 1 / 8) ? (n_fourop[1] > 0 ? 4 : 0) : (play->m_setup.NumCards == 1 ? 1 : play->m_setup.NumCards * 4); } else |