#import <DswitchUG.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) | - setDelaySamples: |
Immediately switches the DswitchUG to its first input and causes it to switch to its second input after count samples 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. |
DswitchUG reads a specified number of samples from its first input signal and then switches to read its second input signal. You can cause a DswitchUG to switch between its two inputs any number of times while its running. A scaler on the first input signal is provided. The input patchpoints must be allocated in the same memory space.
A similar class, DswitchtUG, allows scaling on both signals but restricts the timing of the switch to a tick boundary.
DswitchUGab 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) setDelaySamples: | (int) | count |
Immediately switches the DswitchUG to its first input and causes it to switch to its second input after count samples 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. A negative value will switch immediately to input2. |
- (id) idleSelf |
You never send this message.