YM2612: fix negative octaves
This commit is contained in:
parent
52e35fdf04
commit
c84ff399d9
3 changed files with 16 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue