diff options
| author | Comment <tim@gray.(none)> | 2013-08-31 19:44:31 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-08-31 19:44:31 +0100 |
| commit | 443992effaf9e1c8e6bf7db938ad3b86bc2ffe64 (patch) | |
| tree | 347853065012ee9b9d4105856fc496f047a27aaf /rotord/src/nodes_audio_analysis.h | |
| parent | c5085b5a31c1e25bf83ae910710996863531f8b2 (diff) | |
making mipmaps for Rotor::cvimage
Diffstat (limited to 'rotord/src/nodes_audio_analysis.h')
| -rw-r--r-- | rotord/src/nodes_audio_analysis.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
