#ifndef WAVE_H_ #define WAVE_H_ #include #include #include const uint16_t DEFAULT_N_SAMPLES = 1024; /* Single cycle wave object with lookup table */ class Wave { private: uint16_t m_id{}; // Unique ID number of wave std::array m_table; // table data public: Wave(uint16_t id) : m_id{id}, m_table{} { /* Do nothing */ } uint16_t id() { return m_id; } void setTable(std::array table) { m_table = table; } void print_head(); }; Wave gen_sin(); #endif // WAVE_H_