#ifndef HECK_OSP_INSTR_GRAINLET_HH #define HECK_OSP_INSTR_GRAINLET_HH #include "instr_interface.hh" namespace Heck { namespace Instrument { class Grainlet : public AbstractInstrument { public: Grainlet(); 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::GrainletOscillator grainlet{}; float mode1{}; float mode2{}; }; } // namespace Instrument } // namespace Heck #endif