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.
32 lines
780 B
32 lines
780 B
#ifndef HECK_DAISY_INSTR_BD2_HH
|
|
#define HECK_DAISY_INSTR_BD2_HH
|
|
|
|
#include "instr_abstract.hh"
|
|
#include "daisy_seed.h"
|
|
#include "daisysp.h"
|
|
|
|
namespace ld = daisy;
|
|
namespace dsp = daisysp;
|
|
|
|
namespace Heck {
|
|
namespace Instrument {
|
|
|
|
class BD2 : public AbstractInstrument {
|
|
public:
|
|
BD2();
|
|
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::SyntheticBassDrum bd2{};
|
|
float mode1{};
|
|
float mode2{};
|
|
};
|
|
|
|
} // namespace Instrument
|
|
} // namespace Heck
|
|
#endif
|