diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-08-30 18:27:08 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-08-30 18:27:08 +0100 |
| commit | c5085b5a31c1e25bf83ae910710996863531f8b2 (patch) | |
| tree | 86bfd31285853f18f5ae436970deb0bc4f3e0fe1 /rotord/src/vampHost.h | |
| parent | f38cdcf952ac5c631ed285282e1bc2943f199101 (diff) | |
value output from audio analysis
Diffstat (limited to 'rotord/src/vampHost.h')
| -rw-r--r-- | rotord/src/vampHost.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/rotord/src/vampHost.h b/rotord/src/vampHost.h index d1dfc81..241ffce 100644 --- a/rotord/src/vampHost.h +++ b/rotord/src/vampHost.h @@ -32,7 +32,11 @@ using Vamp::HostExt::PluginInputDomainAdapter; #define HOST_VERSION "1.5" namespace vampHost { - + struct feature{ + feature():number(0){}; + int number; + vector<float> values; + }; class Settings{ public: Settings(string _so="",string _filter="",string _input="") { @@ -60,7 +64,8 @@ namespace vampHost { void process_frame(uint8_t *data,int samples_in_frame); void cleanup(); - map<double,int> features; + //map<double,int> features; + map<double,feature> features; //map<time,featureNo> //this is the best way to store features: because map allows to search for the key below and above the present time |
