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.
21 lines
576 B
21 lines
576 B
#ifndef HECK_DAISY_PERKONS_INSTRUMENT_INTERFACE
|
|
#define HECK_DAISY_PERKONS_INSTRUMENT_INTERFACE
|
|
|
|
class PerkonsInstrumentInterface {
|
|
public:
|
|
virtual void trigger() = 0;
|
|
|
|
// ctl-nr must be 0-5
|
|
// 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_mode(unsigned int pos) = 0;
|
|
virtual void switch_variation(unsigned int pos) = 0;
|
|
virtual void switch_filter(unsigned int pos) = 0;
|
|
virtual float nextsample() = 0;
|
|
|
|
private:
|
|
};
|
|
|
|
#endif // HECK_DAISY_PERKONS_INSTRUMENT_INTERFACE
|
|
|