From e04516069c71a5a1e32e6a5fbf0eb5b86dcfc5a2 Mon Sep 17 00:00:00 2001 From: Comment Date: Sun, 8 Dec 2013 09:57:25 +0000 Subject: many signal fixes --- rotord/src/nodes_audio_analysis.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rotord/src/nodes_audio_analysis.h') 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; } -- cgit v1.2.3