From 2068d8612aa1b6962ac4c8cba3fad355b9237a54 Mon Sep 17 00:00:00 2001 From: Gordon JC Pearce Date: Wed, 9 Oct 2024 22:51:37 +0100 Subject: [PATCH] skeleton of voice controller --- plugin/ic29.cpp | 3 +++ plugin/ic29.hpp | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/plugin/ic29.cpp b/plugin/ic29.cpp index d82e660..4d0de5e 100644 --- a/plugin/ic29.cpp +++ b/plugin/ic29.cpp @@ -20,3 +20,6 @@ #include "peacock.hpp" +void Synth::voiceOn(uint8_t voice, uint8_t note) { + // enable synth voice, start it all running +} diff --git a/plugin/ic29.hpp b/plugin/ic29.hpp index d84a446..491f839 100644 --- a/plugin/ic29.hpp +++ b/plugin/ic29.hpp @@ -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: + + +};