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.
 
 

33 lines
836 B

#ifndef HECK_DAISY_INSTR_NOISE_HH
#define HECK_DAISY_INSTR_NOISE_HH
#include "perkons_instrument_interface.hh"
#include "daisy_seed.h"
#include "daisysp.h"
namespace ld = daisy;
namespace dsp = daisysp;
namespace Heck {
namespace Instrument {
class Noise : public PerkonsInstrumentInterface {
public:
void init(float samplerate);
void trigger() override;
void ctl(unsigned int ctl_nr, float val) override;
void switch_mode(unsigned int pos) override;
void swtich_variation(unsigned int pos) override;
void switch_filter(unsigned int pos) override;
float nextsample() override;
private:
dsp::WhiteNoise noise;
dsp::AdEnv env;
};
} // namespace Instrument
} // namespace Heck
#endif