Added Oscillator

This commit is contained in:
Tom-on64 2026-04-24 14:59:52 +02:00
parent 6f70cf0a3d
commit 9d87c0748b

13
main.cc
View File

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