#ifndef HECK_OSP_INSTR_FM_HH #define HECK_OSP_INSTR_FM_HH #include "instr_interface.hh" namespace Heck { namespace Instrument { class FM : public AbstractInstrument { public: FM(); void init(); void trigger() override; void ctl(unsigned int ctl_nr, float val) override; void switch_mode1(unsigned int pos) override; void switch_mode2(unsigned int pos) override; float nextsample() override; private: dsp::Fm2 osc; }; } // namespace Instrument } // namespace Heck #endif