aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2019-07-01 05:14:03 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2019-07-01 05:14:03 +0300
commit48a951279b9278ebedbf36e77c4884c66acc3da5 (patch)
treeeb59310b2f28404119d818418b37af42ede36356 /utils
parent81f905ea76f0efb6ea35331bd1fe476f14f804de (diff)
downloadlibADLMIDI-48a951279b9278ebedbf36e77c4884c66acc3da5.tar.gz
libADLMIDI-48a951279b9278ebedbf36e77c4884c66acc3da5.tar.bz2
libADLMIDI-48a951279b9278ebedbf36e77c4884c66acc3da5.zip
Fixed broken OP2's note offsets
Diffstat (limited to 'utils')
-rw-r--r--utils/gen_adldata/file_formats/load_op2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/gen_adldata/file_formats/load_op2.h b/utils/gen_adldata/file_formats/load_op2.h
index 0c67323..1d7ea6f 100644
--- a/utils/gen_adldata/file_formats/load_op2.h
+++ b/utils/gen_adldata/file_formats/load_op2.h
@@ -133,6 +133,9 @@ bool BankFormats::LoadDoom(BanksDump &db, const char *fn, unsigned bank, const s
tmp[1].finetune -= 12;
}
+ inst.noteOffset1 = int8_t(tmp[0].finetune);
+ inst.noteOffset2 = int8_t(tmp[1].finetune);
+
if((ins.flags & FL_DOUBLE_VOICE) != 0)
inst.instFlags |= BanksDump::InstrumentEntry::WOPL_Ins_Pseudo4op;
inst.percussionKeyNumber = tmp2.notenum;