YM2612: fix negative octaves

This commit is contained in:
tildearrow 2022-04-24 22:45:59 -05:00
parent 52e35fdf04
commit c84ff399d9
3 changed files with 16 additions and 1 deletions

View file

@ -367,6 +367,9 @@ class DivEngine {
// calculate base frequency/period
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);
// calculate frequency/period
int calcFreq(int base, int pitch, bool period=false, int octave=0);