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