DswitchtUG Class Reference

DswitchtUG is similar to DswitchUG, but its time is constrained to be a multiple of the tick size. More...

#import <DswitchtUG.h>

List of all members.

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.


Detailed Description

DswitchtUG is similar to DswitchUG, but its time is constrained to be a multiple of the tick size.

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.

Memory Spaces

DswitchtUGab a output b input1 and input2


Member Function Documentation

+ (BOOL) shouldOptimize: (unsigned)  arg  

Specifies that all arguments are to be optimized if possible except the delay counter.

Parameters:
arg is an unsigned.
Returns:
Returns an BOOL.

- (id) setInput1: (id)  aPatchPoint  

Sets the input 1 patchpoint to aPatchPoint.

Parameters:
aPatchPoint is an id.
Returns:
Returns an id. Returns nil if the argument isn't a patchpoint; otherwise returns self.

- (id) setInput2: (id)  aPatchPoint  

Sets the input 2 patchpoint to aPatchPoint.

Parameters:
aPatchPoint is an id.
Returns:
Returns an id. Returns nil if the argument isn't a patchpoint; otherwise returns self.

- (id) setOutput: (id)  aPatchPoint  

Sets the output patchpoint to aPatchPoint.

Parameters:
aPatchPoint is an id.
Returns:
Returns an id. Returns nil if the argument isn't a patchpoint; otherwise returns self.

- (id) setScale1: (double)  scale  

Sets the factor by which first input signal is scaled.

Parameters:
scale is a double.
Returns:
Returns self.

- (id) setScale2: (double)  scale  

Sets the factor by which second input signal is scaled.

Parameters:
scale is a double.
Returns:
Returns self.

- (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.

Parameters:
count is an int.
Returns:
Returns self.

- (id) idleSelf  

You never send this message.

Returns:
Returns an id. It's invoked by sending the idle message to the object. Sets the output patchpoint to sink, thus ensuring that the object does not produce any output. Note that you must send setOutput: and run again to use the MKUnitGenerator after sending idle.


The documentation for this class was generated from the following file:

Generated on Sat Dec 5 17:01:14 2009 for MusicKit by  doxygen 1.5.6