From b7ef24d324109a220933a955dc49dba1357b9197 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 24 Oct 2025 01:59:02 +0200 Subject: [PATCH] remove ivoice (deprecated) --- synth/ivoice.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 synth/ivoice.h diff --git a/synth/ivoice.h b/synth/ivoice.h deleted file mode 100644 index 1ef14fb..0000000 --- a/synth/ivoice.h +++ /dev/null @@ -1,30 +0,0 @@ -#pragma once - -#include "audio_buffer.h" -#include - -namespace trnr { -template -struct ivoice { - virtual ~ivoice() = default; - virtual void process_samples(t_sample** _outputs, int _start_index, int _block_size, - std::vector> _modulators = {}) = 0; - virtual bool is_busy() = 0; - virtual void set_samplerate(double samplerate) = 0; - virtual void note_on(int _note, float _velocity) = 0; - virtual void note_off() = 0; - virtual void modulate_pitch(float _pitch) = 0; -}; - -// check if a template derives from ivoice -template -struct is_convertible { - template - static char test(T*); - - template - static double test(...); - - static const bool value = sizeof(test>(static_cast(0))) == 1; -}; -} // namespace trnr \ No newline at end of file