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.
 
 

26 lines
681 B

#ifndef HECK_OSP_INSTR_ABSTRACT
#define HECK_OSP_INSTR_ABSTRACT
#include "main_osp.hh"
namespace Heck::OSP {
namespace Instrument {
class AbstractInstrument {
public:
virtual void trigger() = 0;
// ctl-nr must be 0-3
// val must be 0-1
virtual void ctl(unsigned int ctl_nr, float val) = 0;
// pos must be either 0,1,2
virtual void switch_algo(unsigned int pos) = 0;
virtual void switch_mode(unsigned int pos) = 0;
virtual float nextsample() = 0;
private:
};
} // namespace Instruments
} // namespace Heck
#endif // HECK_OSP_INSTR_ABSTRACT