parent
3ed38aca5e
commit
ece34990e5
5 changed files with 36 additions and 16 deletions
|
|
@ -815,11 +815,19 @@ void DivEngine::playSub(bool preserveDrift, int goalRow) {
|
|||
cmdStream.clear();
|
||||
}
|
||||
|
||||
/*
|
||||
int DivEngine::calcBaseFreq(double clock, double divider, int note, bool period) {
|
||||
double base=(period?(song.tuning*0.0625):song.tuning)*pow(2.0,(float)(note+3)/12.0);
|
||||
return period?
|
||||
round((clock/base)/divider):
|
||||
base*(divider/clock);
|
||||
}*/
|
||||
|
||||
double DivEngine::calcBaseFreq(double clock, double divider, int note, bool period) {
|
||||
double base=(period?(song.tuning*0.0625):song.tuning)*pow(2.0,(float)(note+3)/12.0);
|
||||
return period?
|
||||
(clock/base)/divider:
|
||||
base*(divider/clock);
|
||||
}
|
||||
|
||||
int DivEngine::calcFreq(int base, int pitch, bool period, int octave) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue