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
504 B

#ifndef __PART_H__
#define __PART_H__
#include <map>
#include <unordered_set>
#include "voicemanager.h"
#include "voice.h"
#include "preset.h"
class Part {
public:
VoiceManager* voiceManager;
Voice::Settings settings;
float pitchBend;
float modulation;
std::map<uint8_t, Voice*> notes;
void loadPreset(Preset* preset);
void noteOn(int note, int vel);
void noteOff(int note);
void control(int cc, int val);
float tick() {
return 0;
}
};
#endif