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

@@ -7,8 +7,6 @@
#include <cstdint>
#include <chrono>
#define SYNTH_NOTE_QUEUE_SIZE 128
enum NoteEventType {
NoteOn = 0,
NoteOff
@@ -32,6 +30,8 @@ public:
private:
static constexpr size_t SYNTH_NOTE_QUEUE_SIZE = 128;
std::array<NoteEvent, SYNTH_NOTE_QUEUE_SIZE> buffer_;
std::atomic<size_t> head_{ 0 };
std::atomic<size_t> tail_{ 0 };