polyphony checkpoint

This commit is contained in:
2026-06-12 23:13:18 -05:00
parent 347f585630
commit 9f79f11a19
10 changed files with 218 additions and 39 deletions

View File

@@ -13,10 +13,10 @@ class Synth {
public:
Synth(ConfigService* config, LoggerService* logger, ScopeBuffer* scope);
~Synth();
Synth(ConfigService* config, LoggerService* logger, ScopeBuffer* scope, NoteQueue* queue);
~Synth() = default;
void process(float* out, size_t nFrames, uint32_t sampleRate);
void process(float* out, size_t nFrames);
void handleNoteEvent(const NoteEvent& event);
private:
@@ -30,6 +30,9 @@ private:
static constexpr size_t MAX_VOICES = 32;
std::array<Voice, MAX_VOICES> voices_;
ConfigService* config_;
LoggerService* logger_;
ScopeBuffer* scope_ = nullptr;
NoteQueue* noteQueue_;
}
};