add song tuning

soon: system clock settings
This commit is contained in:
tildearrow 2022-01-28 00:55:51 -05:00
parent 0071894471
commit ec66b7a21b
26 changed files with 211 additions and 156 deletions

View file

@ -11,8 +11,8 @@
#include <map>
#include <queue>
#define DIV_VERSION "0.5pre3"
#define DIV_ENGINE_VERSION 32
#define DIV_VERSION "0.5pre4"
#define DIV_ENGINE_VERSION 33
enum DivStatusView {
DIV_STATUS_NOTHING=0,
@ -260,6 +260,9 @@ class DivEngine {
void setConf(String key, double value);
void setConf(String key, String value);
// calculate base frequency/period
int calcBaseFreq(double clock, double divider, int note, bool period);
// calculate frequency/period
int calcFreq(int base, int pitch, bool period=false);