From b514ee30da4a9a39dd82e3f162d5ae0f5d02a071 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 26 Mar 2022 22:34:11 -0500 Subject: [PATCH] MOD import: non-linear pitch --- src/engine/engine.cpp | 1 + src/engine/fileOps.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index eefefdec8..4973b44f6 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -962,6 +962,7 @@ void DivEngine::reset() { chan[i]=DivChannelState(); if (idispatch(DivCommand(DIV_CMD_GET_VOLMAX,dispatchChanOfChan[i]))<<8)|0xff; chan[i].volume=chan[i].volMax; + if (!song.linearPitch) chan[i].vibratoFine=4; } extValue=0; extValuePresent=0; diff --git a/src/engine/fileOps.cpp b/src/engine/fileOps.cpp index eca105a39..d9806db57 100644 --- a/src/engine/fileOps.cpp +++ b/src/engine/fileOps.cpp @@ -1312,6 +1312,7 @@ bool DivEngine::loadMod(unsigned char* file, size_t len) { DivSong ds; ds.tuning=436.0; ds.version=DIV_VERSION_MOD; + ds.linearPitch=false; ds.noSlidesOnFirstTick=true; ds.rowResetsArpPos=true; ds.ignoreJumpAtEnd=false;