Browse Source

Control Sequences should output control voltage values between 0.0 and 1.0, not -1.0 and 1.0.

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
2cc88013df
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      Timeline/Engine/Control_Sequence.C

+ 2
- 3
Timeline/Engine/Control_Sequence.C View File

@@ -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;


Loading…
Cancel
Save