#import <InterpUG.h>
Public Member Functions | |
(id) | - setInput1: |
Sets the input 1 patchpoint to aPatchPoint. | |
(id) | - setInput2: |
Sets the input 2 patchpoint to aPatchPoint. | |
(id) | - setInterpInput: |
Sets the interp input patchpoint to aPatchPoint. | |
(id) | - setOutput: |
Sets the output patchpoint to aPatchPoint. | |
Static Public Member Functions | |
(BOOL) | + shouldOptimize: |
Specifies that all arguments are to be optimized if possible. |
InterpUG provides dynamic linear interpolation between two input signals, where the interpolation is controlled by a third input signal:
output = input1 + ((input2 - input1) * input3)
When the value of input3 is 0.0, the output of InterpUG is exactly the signal found at input1. When input3 is 1.0, the output is exactly input2. An AsympUG is often used to produce the control signal.
InterpUGabcd a output b input1 c input2 d input3 (interpolation control)
+ (BOOL) shouldOptimize: | (unsigned) | arg |
Specifies that all arguments are to be optimized if possible.
arg | is an unsigned. |
- (id) setInput1: | (id) | aPatchPoint |
Sets the input 1 patchpoint to aPatchPoint.
aPatchPoint | is an id. |
- (id) setInput2: | (id) | aPatchPoint |
Sets the input 2 patchpoint to aPatchPoint.
aPatchPoint | is an id. |
- (id) setInterpInput: | (id) | aPatchPoint |
Sets the interp input patchpoint to aPatchPoint.
aPatchPoint | is an id. |
- (id) setOutput: | (id) | aPatchPoint |
Sets the output patchpoint to aPatchPoint.
aPatchPoint | is an id. |