Newer
Older
music / app / src / main / cpp / waveforms / Sine.h
  1. #ifndef MUSIC_SINE_H
  2. #define MUSIC_SINE_H
  3.  
  4. class Sine;
  5.  
  6. #include <stdint.h>
  7. #include "Waveform.h"
  8.  
  9. class Sine : public Waveform {
  10. private:
  11. float phaseStep, phase = 0;
  12. public:
  13. void renderWaveform(uint32_t frameCount);
  14.  
  15. void setFrequency(float freq);
  16. };
  17.  
  18. #endif