csound::Rescale Class Reference

#include <Rescale.hpp>

Inheritance diagram for csound::Rescale:

Inheritance graph
[legend]
Collaboration diagram for csound::Rescale:

Collaboration graph
[legend]

Detailed Description

Rescales all child events to fit a bounding hypercube in music space. No, some, or all dimensions may be rescaled to fit the minimum alone, the range alone, or both the minimum and the range.

Public Member Functions

 Rescale ()
virtual ~Rescale ()
virtual void initialize ()
virtual void produceOrTransform (Score &score, size_t beginAt, size_t endAt, const ublas::matrix< double > &coordinates)
virtual void setRescale (int dimension, bool rescaleMinimum, bool rescaleRange, double targetMinimum, double targetRange)
virtual void getRescale (int dimension, bool &rescaleMinimum, bool &rescaleRange, double &targetMinimum, double &targetRange)
virtual ScoregetScore ()
virtual ublas::matrix< double > getLocalCoordinates () const
virtual ublas::matrix< double > traverse (const ublas::matrix< double > &globalCoordinates, Score &score)
virtual ublas::matrix< double > createTransform ()
virtual void clear ()
virtual double & element (size_t row, size_t column)
virtual void setElement (size_t row, size_t column, double value)
virtual void addChild (Node *node)

Data Fields

std::string importFilename
std::vector< Node * > children

Protected Attributes

Score score
ublas::matrix< double > localCoordinates

Static Private Attributes

static bool initialized
static std::map< std::string,
size_t > 
dimensions

Constructor & Destructor Documentation

csound::Rescale::Rescale (  ) 

virtual csound::Rescale::~Rescale (  )  [virtual]


Member Function Documentation

virtual void csound::Rescale::initialize (  )  [virtual]

virtual void csound::Rescale::produceOrTransform ( Score score,
size_t  beginAt,
size_t  endAt,
const ublas::matrix< double > &  coordinates 
) [virtual]

The default implementation does nothing.

Reimplemented from csound::ScoreNode.

virtual void csound::Rescale::setRescale ( int  dimension,
bool  rescaleMinimum,
bool  rescaleRange,
double  targetMinimum,
double  targetRange 
) [virtual]

virtual void csound::Rescale::getRescale ( int  dimension,
bool &  rescaleMinimum,
bool &  rescaleRange,
double &  targetMinimum,
double &  targetRange 
) [virtual]

virtual Score& csound::ScoreNode::getScore (  )  [virtual, inherited]

virtual ublas::matrix<double> csound::Node::getLocalCoordinates (  )  const [virtual, inherited]

Returns the local transformation of coordinate system.

Reimplemented in csound::Random.

virtual ublas::matrix<double> csound::Node::traverse ( const ublas::matrix< double > &  globalCoordinates,
Score score 
) [virtual, inherited]

The default implementation postconcatenates its own local coordinate system with the global coordinates, then passes the score and the product of coordinate systems to each child, thus performing a depth-first traversal of the music graph.

Reimplemented in csound::Hocket, and csound::Sequence.

virtual ublas::matrix<double> csound::Node::createTransform (  )  [virtual, inherited]

virtual void csound::Node::clear (  )  [virtual, inherited]

Reimplemented in csound::Lindenmayer, and csound::MusicModel.

virtual double& csound::Node::element ( size_t  row,
size_t  column 
) [virtual, inherited]

virtual void csound::Node::setElement ( size_t  row,
size_t  column,
double  value 
) [virtual, inherited]

virtual void csound::Node::addChild ( Node node  )  [virtual, inherited]


Field Documentation

bool csound::Rescale::initialized [static, private]

std::map<std::string, size_t> csound::Rescale::dimensions [static, private]

Score csound::ScoreNode::score [protected, inherited]

std::string csound::ScoreNode::importFilename [inherited]

ublas::matrix<double> csound::Node::localCoordinates [protected, inherited]

std::vector<Node *> csound::Node::children [inherited]

Child Nodes, if any.


Generated on Sun Nov 9 00:25:00 2008 for Csound and CsoundAC by  doxygen 1.5.6