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

@ -481,7 +481,7 @@ class DivEngine {
double calcBaseFreq(double clock, double divider, int note, bool period);
// calculate base frequency in f-num/block format
unsigned short calcBaseFreqFNumBlock(double clock, double divider, int note, int bits);
int calcBaseFreqFNumBlock(double clock, double divider, int note, int bits);
// calculate frequency/period
int calcFreq(int base, int pitch, bool period=false, int octave=0, int pitch2=0, double clock=1.0, double divider=1.0, int blockBits=0);