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.
23 lines
423 B
23 lines
423 B
#ifndef __SYNTH_H__
|
|
#define __SYNTH_H__
|
|
|
|
#include "voicemanager.h"
|
|
#include "part.h"
|
|
|
|
class Synth {
|
|
public:
|
|
Synth() {
|
|
for(int i = 0; i < 16; ++i) {
|
|
parts[i].voiceManager = &voiceManager;
|
|
}
|
|
}
|
|
void noteOn(int ch, int note, int vel);
|
|
void noteOff(int ch, int note);
|
|
void control(int ch, int cc, int val);
|
|
|
|
private:
|
|
VoiceManager voiceManager{};
|
|
Part parts[16];
|
|
};
|
|
|
|
#endif |