#import <DswitchtUG.h>
Public Member Functions | |
(id) | - setInput1: |
Sets the input 1 patchpoint to aPatchPoint. | |
(id) | - setInput2: |
Sets the input 2 patchpoint to aPatchPoint. | |
(id) | - setOutput: |
Sets the output patchpoint to aPatchPoint. | |
(id) | - setScale1: |
Sets the factor by which first input signal is scaled. | |
(id) | - setScale2: |
Sets the factor by which second input signal is scaled. | |
(id) | - setDelayTicks: |
Immediately switches the DswitchtUG to its first input and causes it to switch to its second input after count ticks have been read. | |
(id) | - idleSelf |
You never send this message. | |
Static Public Member Functions | |
(BOOL) | + shouldOptimize: |
Specifies that all arguments are to be optimized if possible except the delay counter. |
DswitchtUG reads a specified number of ticks from its first input signal and then switches to read the its second input signal. You can cause a DswitchtUG to switch between its two inputs any number of times while its running. The input signals can be independently scaled. The input patchpoints must be allocated in the same memory space.
A similar class, DswitchUG, switches on a sample boundary and doesn't allow scaling on the second input.
DswitchtUGab a output b input1 and input2
+ (BOOL) shouldOptimize: | (unsigned) | arg |
Specifies that all arguments are to be optimized if possible except the delay counter.
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) setOutput: | (id) | aPatchPoint |
Sets the output patchpoint to aPatchPoint.
aPatchPoint | is an id. |
- (id) setScale1: | (double) | scale |
Sets the factor by which first input signal is scaled.
scale | is a double. |
- (id) setScale2: | (double) | scale |
Sets the factor by which second input signal is scaled.
scale | is a double. |
- (id) setDelayTicks: | (int) | count |
Immediately switches the DswitchtUG to its first input and causes it to switch to its second input after count ticks have been read.
If count is less than or equal to zero, the switch to the second input is performed immediately. If the object is currently reading from its first input because of a previous invocation of this method, the old count is superceded by the new one.
count | is an int. |
- (id) idleSelf |
You never send this message.