mirror of
https://github.com/thestk/stk
synced 2026-01-14 21:41:53 +00:00
Version 3.2
This commit is contained in:
committed by
Stephen Sinclair
parent
4b6500d3de
commit
3f126af4e5
44
include/Simple.h
Normal file
44
include/Simple.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/*******************************************/
|
||||
/* Master Class for Simple Instrument */
|
||||
/* by Perry R. Cook, 1995-96 */
|
||||
/* This instrument contains 1 looped */
|
||||
/* wave, 1 noise source, 1 biquad filter */
|
||||
/* 1 one-pole filter, and 1 ADSR envelope */
|
||||
/*******************************************/
|
||||
|
||||
#if !defined(__Simple_h)
|
||||
#define __Simple_h
|
||||
|
||||
#include "Instrmnt.h"
|
||||
#include "ADSR.h"
|
||||
#include "RawWvIn.h"
|
||||
#include "OnePole.h"
|
||||
#include "TwoPole.h"
|
||||
#include "TwoZero.h"
|
||||
#include "Noise.h"
|
||||
|
||||
class Simple : public Instrmnt
|
||||
{
|
||||
protected:
|
||||
ADSR *adsr;
|
||||
RawWvIn *loop;
|
||||
OnePole *filter;
|
||||
TwoPole *bqpoles;
|
||||
TwoZero *bqzeroes;
|
||||
Noise *noise;
|
||||
MY_FLOAT baseFreq;
|
||||
MY_FLOAT loopGain;
|
||||
public:
|
||||
Simple();
|
||||
virtual ~Simple();
|
||||
void clear();
|
||||
virtual void setFreq(MY_FLOAT frequency);
|
||||
void keyOn();
|
||||
void keyOff();
|
||||
virtual void noteOn(MY_FLOAT freq, MY_FLOAT amp);
|
||||
virtual void noteOff(MY_FLOAT amplitude);
|
||||
virtual MY_FLOAT tick();
|
||||
virtual void controlChange(int number, MY_FLOAT value);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user