skeleton of voice controller
This commit is contained in:
parent
e42cd1325f
commit
2068d8612a
@ -20,3 +20,6 @@
|
||||
|
||||
#include "peacock.hpp"
|
||||
|
||||
void Synth::voiceOn(uint8_t voice, uint8_t note) {
|
||||
// enable synth voice, start it all running
|
||||
}
|
||||
|
@ -20,3 +20,23 @@
|
||||
|
||||
#include "peacock.hpp"
|
||||
|
||||
class Synth {
|
||||
public:
|
||||
Synth();
|
||||
void voiceOn(uint8_t voice, uint8_t note);
|
||||
void voiceOff(uint8_t voice);
|
||||
void sustainSwitch(uint8_t val);
|
||||
void pitchBend(int16_t bend);
|
||||
void modWheel(uint8_t wheel);
|
||||
uint16_t masterPitch; // sum of bend and LFO, plus any other pitch-setting value
|
||||
private:
|
||||
};
|
||||
|
||||
class Voice {
|
||||
public:
|
||||
Voice();
|
||||
void run();
|
||||
private:
|
||||
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user