aboutsummaryrefslogtreecommitdiff
path: root/utils/gen_adldata/file_formats/load_bisqwit.h
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2019-06-22 03:59:56 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2019-06-22 03:59:56 +0300
commitd20e6b38692f4d1159fa4219c0985f8b322454e4 (patch)
tree88fddb5111482e8f9a89272a901395ef207bf56e /utils/gen_adldata/file_formats/load_bisqwit.h
parent44e7fcf4789f365ed3509904a36af0c1abf56395 (diff)
downloadlibADLMIDI-d20e6b38692f4d1159fa4219c0985f8b322454e4.tar.gz
libADLMIDI-d20e6b38692f4d1159fa4219c0985f8b322454e4.tar.bz2
libADLMIDI-d20e6b38692f4d1159fa4219c0985f8b322454e4.zip
Enable measurer for new database format too
Diffstat (limited to 'utils/gen_adldata/file_formats/load_bisqwit.h')
-rw-r--r--utils/gen_adldata/file_formats/load_bisqwit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/gen_adldata/file_formats/load_bisqwit.h b/utils/gen_adldata/file_formats/load_bisqwit.h
index cf3a6a1..8ff91b1 100644
--- a/utils/gen_adldata/file_formats/load_bisqwit.h
+++ b/utils/gen_adldata/file_formats/load_bisqwit.h
@@ -69,8 +69,8 @@ bool BankFormats::LoadBisqwit(BanksDump &db, const char *fn, unsigned bank, cons
}
inst.fbConn = uint_fast16_t(tmp[0].data[10]) | (uint_fast16_t(tmp[1].data[10]) << 8);
- inst.percussionKeyNumber = tmp2.notenum;
- inst.noteOffset1 = tmp2.notenum;
+ inst.percussionKeyNumber = a >= 128 ? tmp2.notenum : 0;
+ inst.noteOffset1 = a < 128 ? tmp2.notenum : 0;
db.addInstrument(bnk, patchId, inst, ops);
}
std::fclose(fp);