From 2cc88013dfdc7509562763cbf299a9918624b267 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 24 Jan 2010 13:57:05 -0600 Subject: [PATCH] Control Sequences should output control voltage values between 0.0 and 1.0, not -1.0 and 1.0. --- Timeline/Engine/Control_Sequence.C | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Timeline/Engine/Control_Sequence.C b/Timeline/Engine/Control_Sequence.C index c4ce8e3..b3da295 100644 --- a/Timeline/Engine/Control_Sequence.C +++ b/Timeline/Engine/Control_Sequence.C @@ -72,9 +72,8 @@ Control_Sequence::play ( sample_t *buf, nframes_t frame, nframes_t nframes ) const nframes_t len = p2->when() - p1->when(); - /* scale to -1.0 to 1.0 */ - const float y1 = 1.0f - ( 2.0f * p1->control() ); - const float y2 = 1.0f - ( 2.0f * p2->control() ); + const float y1 = 1.0f - p1->control(); + const float y2 = 1.0f - p2->control(); const nframes_t start = frame - p1->when(); const float incr = ( y2 - y1 ) / (float)len;