From 385f7af664d58725cb69479d22f0a734ed8b0b30 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sun, 9 Apr 2023 10:29:51 +0900 Subject: [PATCH] ES5506: Fix frequency for note map --- src/engine/platform/es5506.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/engine/platform/es5506.cpp b/src/engine/platform/es5506.cpp index 28ad45eb2..5f6e28292 100644 --- a/src/engine/platform/es5506.cpp +++ b/src/engine/platform/es5506.cpp @@ -433,7 +433,6 @@ void DivPlatformES5506::tick(bool sysTick) { off=(double)center/8363.0; } if (ins->amiga.useNoteMap) { - off*=(double)noteMapind.freq/((double)MAX(1,center)*pow(2.0,((double)next-48.0)/12.0)); chan[i].pcm.note=next; } // get loop mode @@ -618,10 +617,6 @@ void DivPlatformES5506::tick(bool sysTick) { } else { off=(double)center/8363.0; } - if (ins->amiga.useNoteMap) { - DivInstrumentAmiga::SampleMap& noteMapind=ins->amiga.noteMap[chan[i].pcm.note]; - off*=(double)noteMapind.freq/((double)MAX(1,center)*pow(2.0,((double)chan[i].pcm.note-48.0)/12.0)); - } chan[i].pcm.loopStart=(chan[i].pcm.start+(s->loopStart<<11))&0xfffff800; chan[i].pcm.loopEnd=(chan[i].pcm.start+((s->loopEnd-1)<<11))&0xffffff80; chan[i].pcm.freqOffs=PITCH_OFFSET*off;