Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

Loris::PartialUtils::PartialMutator Class Reference

PartialMutator is an abstract base class for Partial mutators, functors that operate on Partials according to a time-varying envelope. More...

#include <PartialUtils.h>

Inheritance diagram for Loris::PartialUtils::PartialMutator:

Loris::PartialUtils::AmplitudeScaler Loris::PartialUtils::BandwidthScaler Loris::PartialUtils::FrequencyScaler Loris::PartialUtils::NoiseRatioScaler Loris::PartialUtils::PitchShifter List of all members.

Public Member Functions

 PartialMutator (double x)
 Construct a new PartialMutator from a constant mutation factor.

 PartialMutator (const Envelope &e)
 Construct a new PartialMutator from an Envelope representing a time-varying mutation factor.

 PartialMutator (const PartialMutator &rhs)
 Construct a new PartialMutator that is a copy of another.

virtual ~PartialMutator (void)
 Destroy this PartialMutator, deleting its Envelope.

PartialMutatoroperator= (const PartialMutator &rhs)
 Make this PartialMutator a duplicate of another one.

virtual void operator() (Partial &p) const =0
 Function call operator: apply a mutation factor to the specified Partial.


Detailed Description

PartialMutator is an abstract base class for Partial mutators, functors that operate on Partials according to a time-varying envelope.

The base class manages a polymorphic Envelope instance that provides the time-varying mutation parameters.

Invariant:
env is a non-zero pointer to a valid instance of a class derived from the abstract class Envelope.


Member Function Documentation

virtual void Loris::PartialUtils::PartialMutator::operator() Partial p  )  const [pure virtual]
 

Function call operator: apply a mutation factor to the specified Partial.

Derived classes must implement this member.

Implemented in Loris::PartialUtils::AmplitudeScaler, Loris::PartialUtils::BandwidthScaler, Loris::PartialUtils::FrequencyScaler, Loris::PartialUtils::NoiseRatioScaler, and Loris::PartialUtils::PitchShifter.

PartialMutator& Loris::PartialUtils::PartialMutator::operator= const PartialMutator rhs  ) 
 

Make this PartialMutator a duplicate of another one.

Parameters:
rhs is the PartialMutator to copy.


Generated on Thu Apr 14 22:01:57 2005 for Loris by doxygen 1.3.4