Permalink
Browse files

use scale, offset, stretch

  • Loading branch information...
1 parent b7b6274 commit 7b5c8077e2fb275878a9b1f774800673c2feb0f3 @rukano committed Dec 19, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 classes/working/ControlLoop.sc
@@ -51,12 +51,11 @@ ControlLoop {
inf.do{ |i|
var time, val;
#time, val = array.wrapAt(i);
- time.wait;
+ (time * stretch).wait;
if(val != nil) {
+ val = val * scale + offset;
action.value(val);
- if (bus != nil) {
- bus.set(val);
- }
+ if (bus != nil) { bus.set(val) }
}
}
};

0 comments on commit 7b5c807

Please sign in to comment.