teach-matsuuratomoya-com/content/docs/2023/code-design/9/mozzi_sine.ino

22 lines
288 B
Arduino
Raw Permalink Normal View History

2023-06-13 09:48:18 +00:00
#include <MozziGuts.h>
#include <Oscil.h>
#include <tables/sin2048_int8.h>
Oscil <SIN2048_NUM_CELLS, AUDIO_RATE> aSin(SIN2048_DATA);
void setup(){
startMozzi();
aSin.setFreq(440);
}
void updateControl(){
}
int updateAudio(){
return aSin.next();
}
void loop(){
audioHook();
}