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.
 
 

19 lines
302 B

#ifndef __SYNTH_H__
#define __SYNTH_H__
#include "voice.h"
const int SAMPLE_RATE = 48000;
const int NUM_VOICES = 72;
class Synth {
public:
void noteOn(int note, int velocity);
void noteOff(int note);
void control(int code, int value);
private:
Voice voices[NUM_VOICES];
};
#endif