Compare commits

...

2 Commits

13
main.cc
View File

@ -11,9 +11,6 @@
#include "state.h" #include "state.h"
#include "daisysp.h" #include "daisysp.h"
daisysp::Oscillator osc;
daisysp::Svf filter;
state_t state; state_t state;
void init_all() { void init_all() {
@ -41,7 +38,15 @@ void init_all() {
} }
} }
__attribute__((noreturn)) int main() { daisysp::Oscillator osc;
__attribute__((noreturn))
int main() {
init_all(); init_all();
osc.Init(SAMPLE_RATE);
while (1) {
osc.SetFreq(state.vco_freq * 1760);
}
} }