Added Oscillator
This commit is contained in:
parent
6f70cf0a3d
commit
9d87c0748b
13
main.cc
13
main.cc
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user