15 lines
206 B
C++
15 lines
206 B
C++
#ifndef OSCILLATOR
|
|
#define OSCILLATOR
|
|
|
|
#include <cstdint>
|
|
|
|
struct Oscillator{
|
|
double frequency = 440.0;
|
|
double amplitude = 0.5;
|
|
double phase = 0.0;
|
|
|
|
uint32_t sample_rate = 48000;
|
|
};
|
|
|
|
#endif
|