From 443992effaf9e1c8e6bf7db938ad3b86bc2ffe64 Mon Sep 17 00:00:00 2001 From: Comment Date: Sat, 31 Aug 2013 19:44:31 +0100 Subject: making mipmaps for Rotor::cvimage --- rotord/src/nodes_audio_analysis.h | 4 ++-- 1 file changed, 2 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 fba4bcc..619b60a 100644 --- a/rotord/src/nodes_audio_analysis.h +++ b/rotord/src/nodes_audio_analysis.h @@ -49,11 +49,11 @@ namespace Rotor { if (i->second.values.size()) v1=i->second.values[0]; switch (attributes["mode"]->intVal){ case VAMPHOST_Timeline: - return (((time.time-lk)/(uk-lk))+ln); + return ((time.time-lk)+ln); case VAMPHOST_Timesteps: return (float)ln; case VAMPHOST_Valueline: - return (((time.time-lk)/(v2-v1))+v1); + return (((time.time-lk)*(v2-v1))+v1); case VAMPHOST_Values: return v1; } -- cgit v1.2.3