diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-09-10 12:56:08 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-09-10 12:56:08 +0100 |
| commit | 959b4591baa048b692e38c39c8db89317023ccea (patch) | |
| tree | f819b7b5ecc614bbe5c4e40fd573b33b55fb5edc /rotord/src/nodes_audio_analysis.h | |
| parent | 1ba984e17672dd214e4e239c6806ee2e739432e8 (diff) | |
cvimage release
Diffstat (limited to 'rotord/src/nodes_audio_analysis.h')
| -rw-r--r-- | rotord/src/nodes_audio_analysis.h | 21 |
1 files changed, 21 insertions, 0 deletions
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<string,string> &_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: |
