The OSP is a hackable, open source drum machine that accidentally got very, very close to the erica perkons hd-01, which is real beauty of instrument design that i truly love, except for its unhackable closed source nature. So, we new need gnu one.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
683 B

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