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/graph.cpp | |
| parent | f38cdcf952ac5c631ed285282e1bc2943f199101 (diff) | |
value output from audio analysis
Diffstat (limited to 'rotord/src/graph.cpp')
| -rw-r--r-- | rotord/src/graph.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index 03192f3..3d0a88b 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -33,6 +33,18 @@ bool Graph::signal_render(string &signal_xml,const float framerate) { return false; } */ +bool Graph::print_features(xmlIO &XML,string &node){ + if (nodes.find(node)!=nodes.end()){ + if (dynamic_cast<Audio_processor*>(nodes[node])){ + XML.addValue("features",dynamic_cast<Audio_processor*>(nodes[node])->get_features()); + return true; + } + XML.addValue("error","node /"+node+"/ is not an Audio processor"); + return false; + } + XML.addValue("error","could not find node /"+node+"/"); + return false; +} bool Graph::preview(xmlIO &XML,string &node,string &_format,int frame,int w,int h){ if (nodes.find(node)!=nodes.end()){ float t=frame/framerate; |
