YM2612: implement full linear pitch (part 2)

This commit is contained in:
tildearrow 2022-05-10 23:17:40 -05:00
parent 0cc2c06bbf
commit f5dbc37902
4 changed files with 75 additions and 22 deletions

View file

@ -1023,7 +1023,7 @@ double DivEngine::calcBaseFreq(double clock, double divider, int note, bool peri
/* logV("f-num: %d block: %d",bf,block); */ \
return bf|(block<<bits);
unsigned short DivEngine::calcBaseFreqFNumBlock(double clock, double divider, int note, int bits) {
int DivEngine::calcBaseFreqFNumBlock(double clock, double divider, int note, int bits) {
if (song.linearPitch==2) { // full linear
return (note<<7);
}