diff --git a/src/engine/fileOps/mod.cpp b/src/engine/fileOps/mod.cpp index 6065b2454..2eccfcad7 100644 --- a/src/engine/fileOps/mod.cpp +++ b/src/engine/fileOps/mod.cpp @@ -198,7 +198,7 @@ bool DivEngine::loadMod(unsigned char* file, size_t len) { int period=data[1]+((data[0]&0x0f)<<8); if (period>0 && period<0x0fff) { short note=(short)round(log2(3424.0/period)*12); - dstrow[0]=((note-1)%12)+1; + dstrow[0]=((note+11)%12)+1; dstrow[1]=(note-1)/12+1; if (period<114) { bypassLimits=true;