csound::Node Class Reference

#include <Node.hpp>

Inherited by csound::CounterpointNode, csound::MusicModel, csound::Random, csound::ScoreNode, csound::Sequence, and csound::VoiceleadingNode.

Public Member Functions

Data Fields

Protected Attributes


Detailed Description

Base class for all music graph nodes in the Silence system. Nodes can transform silence::Events produced by child nodes. Nodes can produce silence::Events.

Constructor & Destructor Documentation

csound::Node::Node (  ) 

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


Member Function Documentation

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

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

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

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

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

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

Returns the local transformation of coordinate system.

Reimplemented in csound::Random.

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

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

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

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.


Field Documentation

std::vector<Node *> csound::Node::children

Child Nodes, if any.

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


Generated on Wed Jul 29 22:58:42 2009 for Csound and CsoundAC API by  doxygen 1.5.9