el diego 2 finally plays back correctly
ALMOST
This commit is contained in:
parent
4f2ce0f907
commit
65444d4a99
10 changed files with 20 additions and 13 deletions
|
|
@ -217,7 +217,7 @@ void DivPlatformYM2610Ext::tick() {
|
|||
unsigned char writeMask=2;
|
||||
if (extMode) for (int i=0; i<4; i++) {
|
||||
if (opChan[i].freqChanged) {
|
||||
opChan[i].freq=(opChan[i].baseFreq*(ONE_SEMITONE+opChan[i].pitch))/ONE_SEMITONE;
|
||||
opChan[i].freq=(opChan[i].baseFreq*pow(2,(double)opChan[i].pitch/(12.0*128.0)));
|
||||
int freqt=toFreq(opChan[i].freq);
|
||||
opChan[i].freqH=freqt>>8;
|
||||
opChan[i].freqL=freqt&0xff;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue