csl::BinaryOp Class Reference

#include <BinaryOp.h>

Inheritance diagram for csl::BinaryOp:

csl::Effect csl::AddOp csl::MulOp List of all members.

Detailed Description

BinaryOp -- An Effect that takes two input sources (UnitGenerators or scalars) and gives a single UnitGenerator as its output. BinaryOp is an abstract class who's nextBuffer method is to be implemented by subclasses


Public Member Functions

 BinaryOp (UnitGenerator &op1, UnitGenerator &op2)
 The constructor for dual-UnitGenerator operation.
 BinaryOp (UnitGenerator &op1, float op2)
 Constructuctor for operating a UnitGenerator and a fixed float.
 BinaryOp (float op1, UnitGenerator &op2)
 The same constructor, but with UGen and float inputs.
virtual ~BinaryOp ()
 The destructor.
void dump ()
 Finds out if the buffer changes over the given bufferLength range.

Protected Member Functions

virtual void nextBuffer (Buffer &outputBuffer, unsigned outBufNum)=0 throw (CException)
 Abstract function that will do the processing for each buffer.
bool isFixed ()
 Is the input fixed or a dynamic UnitGenerator?
bool inputIsFixed ()
bool operandIsFixed ()
 Is the operand fixed or a dynamic UnitGenerator?
sample operandFixedValue (Buffer &outputBuffer)
 Convert the dynamic operand to a fixed sample (if operand is fixed).


Constructor & Destructor Documentation

BinaryOp::BinaryOp UnitGenerator op1,
UnitGenerator op2
 

The constructor for dual-UnitGenerator operation.

BinaryOp::BinaryOp UnitGenerator op1,
float  op2
 

Constructuctor for operating a UnitGenerator and a fixed float.

BinaryOp::BinaryOp float  op1,
UnitGenerator op2
 

The same constructor, but with UGen and float inputs.

BinaryOp::~BinaryOp  )  [virtual]
 

The destructor.


Member Function Documentation

void BinaryOp::dump  ) 
 

Finds out if the buffer changes over the given bufferLength range.

Prints instance info

virtual void csl::BinaryOp::nextBuffer Buffer outputBuffer,
unsigned  outBufNum
throw (CException) [protected, pure virtual]
 

Abstract function that will do the processing for each buffer.

Implemented in csl::AddOp, and csl::MulOp.

bool BinaryOp::isFixed  )  [inline, protected]
 

Is the input fixed or a dynamic UnitGenerator?

bool BinaryOp::inputIsFixed  )  [inline, protected]
 

bool BinaryOp::operandIsFixed  )  [inline, protected]
 

Is the operand fixed or a dynamic UnitGenerator?

sample csl::BinaryOp::operandFixedValue Buffer outputBuffer  )  [inline, protected]
 

Convert the dynamic operand to a fixed sample (if operand is fixed).


The documentation for this class was generated from the following files:
Generated on Fri Apr 6 20:18:19 2007 for CSL by  doxygen 1.4.5-20051010