From 959b4591baa048b692e38c39c8db89317023ccea Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 10 Sep 2013 12:56:08 +0100 Subject: cvimage release --- rotord/src/nodes_audio_analysis.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'rotord/src/nodes_audio_analysis.h') diff --git a/rotord/src/nodes_audio_analysis.h b/rotord/src/nodes_audio_analysis.h index 89d6c9d..ca7c204 100644 --- a/rotord/src/nodes_audio_analysis.h +++ b/rotord/src/nodes_audio_analysis.h @@ -9,6 +9,27 @@ namespace Rotor { #define VAMPHOST_Timesteps 2 #define VAMPHOST_Valueline 3 #define VAMPHOST_Values 4 + class Audio_thumbnailer: public Audio_processor { + public: + Audio_thumbnailer(){ + height=128; + width=512; //fit + vectordata =new float[width]; + }; + ~Audio_thumbnailer(){ + delete[] vectordata; + }; + Audio_thumbnailer* clone(map &_settings) { return new Audio_thumbnailer();}; + bool init(int _channels,int _bits,int _samples,int _rate); + void cleanup(){}; + int process_frame(uint8_t *data,int samples_in_frame); + void print_vector(xmlIO XML); + float *vectordata; + int height,width,samples_per_column; + int column,out_sample,sample,samples; + int offset; + double scale,accum; + }; class Vamp_node: public Audio_processor { //base class for vamp plugin hosts public: -- cgit v1.2.3