diff options
| author | Comment <tim@gray.(none)> | 2013-12-08 09:57:25 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-12-08 09:57:25 +0000 |
| commit | e04516069c71a5a1e32e6a5fbf0eb5b86dcfc5a2 (patch) | |
| tree | bec01f63fb5306d6ec49eae870ed747594be5927 /rotord/src/nodes_audio_analysis.h | |
| parent | a647bc51ea9fd29623aba56246e85c51b923bbd9 (diff) | |
many signal fixes
Diffstat (limited to 'rotord/src/nodes_audio_analysis.h')
| -rw-r--r-- | rotord/src/nodes_audio_analysis.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rotord/src/nodes_audio_analysis.h b/rotord/src/nodes_audio_analysis.h index aa0aeb0..8cb70d0 100644 --- a/rotord/src/nodes_audio_analysis.h +++ b/rotord/src/nodes_audio_analysis.h @@ -57,7 +57,7 @@ namespace Rotor { const float output(const Time_spec &time) { if (features.size()) { auto i=features.upper_bound(time.time); //the first element in the container whose key is considered to go after k - if (i!=features.end()){ + if (i==features.end()) i--; float uk=i->first; float v1,v2; v1=v2=0.0f; @@ -76,7 +76,8 @@ namespace Rotor { case VAMPHOST_Values: return v1; } - } + //} + //return (--features.end())->second.values[0]; } return 0.0f; } |
