diff options
Diffstat (limited to 'src/gen_adldata/file_formats/load_op2.h')
-rw-r--r-- | src/gen_adldata/file_formats/load_op2.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gen_adldata/file_formats/load_op2.h b/src/gen_adldata/file_formats/load_op2.h index 0d95f59..30a118f 100644 --- a/src/gen_adldata/file_formats/load_op2.h +++ b/src/gen_adldata/file_formats/load_op2.h @@ -96,7 +96,7 @@ static bool LoadDoom(const char *fn, unsigned bank, const char *prefix) struct ins tmp2; tmp2.notenum = ins.note; tmp2.pseudo4op = false; - tmp2.fine_tune = 0.0; + tmp2.voice2_fine_tune = 0.0; while(tmp2.notenum && tmp2.notenum < 20) { tmp2.notenum += 12; @@ -112,11 +112,11 @@ static bool LoadDoom(const char *fn, unsigned bank, const char *prefix) else // Double instrument { tmp2.pseudo4op = true; - tmp2.fine_tune = (((double)ins.finetune - 128.0) * 15.625) / 1000.0; + tmp2.voice2_fine_tune = (((double)ins.finetune - 128.0) * 15.625) / 1000.0; if(ins.finetune == 129) - tmp2.fine_tune = 0.000025; + tmp2.voice2_fine_tune = 0.000025; else if(ins.finetune == 127) - tmp2.fine_tune = -0.000025; + tmp2.voice2_fine_tune = -0.000025; //printf("/*DOOM FINE TUNE (flags %000X instrument is %d) IS %d -> %lf*/\n", ins.flags, a, ins.finetune, tmp2.fine_tune); size_t resno = InsertIns(tmp[0], tmp[1], tmp2, std::string(1, '\377') + name, name2); SetBank(bank, (unsigned int)gmno, resno); |