#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