summaryrefslogtreecommitdiff
path: root/rotord/src/nodes_audio_analysis.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/nodes_audio_analysis.h')
-rw-r--r--rotord/src/nodes_audio_analysis.h5
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;
}