diff options
| author | Comment <tim@gray.(none)> | 2013-09-30 12:51:15 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-09-30 12:51:15 +0100 |
| commit | 6bbe71d21f9ddf1af84d9a9e7d2dbf989ec921ce (patch) | |
| tree | 5045189587e8cf6bec93d506e8c59297dc9bdb3d /rotord | |
| parent | 9b6845576baddaf23afc80c61502dafd391b30b8 (diff) | |
waveform auto iterate on print
Diffstat (limited to 'rotord')
| -rw-r--r-- | rotord/src/nodes_audio_analysis.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rotord/src/nodes_audio_analysis.cpp b/rotord/src/nodes_audio_analysis.cpp index 41ca3da..220f14b 100644 --- a/rotord/src/nodes_audio_analysis.cpp +++ b/rotord/src/nodes_audio_analysis.cpp @@ -56,9 +56,10 @@ namespace Rotor{ } void Audio_thumbnailer::print_vector(xmlIO XML){ string vdata; - for (int i=0;i<width;i++){ + int i=0; + for (auto sample: audiodata){ if (i>0) vdata+=","; - vdata+=toString(audiodata[i]); + vdata+=toString(sample); } XML.addValue("data",vdata); } |
