skeleton of voice controller

This commit is contained in:
Gordon JC Pearce 2024-10-09 22:51:37 +01:00
parent e42cd1325f
commit 2068d8612a
2 changed files with 23 additions and 0 deletions

View File

@ -20,3 +20,6 @@
#include "peacock.hpp" #include "peacock.hpp"
void Synth::voiceOn(uint8_t voice, uint8_t note) {
// enable synth voice, start it all running
}

View File

@ -20,3 +20,23 @@
#include "peacock.hpp" #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:
};