MOD import: fix possible bug notes
This commit is contained in:
parent
d13efbee69
commit
8965c60b0a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue