The notes produced by each (not all) child node, are rescaled to all start at the same time, and last for the same duration; that of the 0th child, or a specified duration.
More...
#include <Cell.hpp>
Public Member Functions |
virtual void | addChild (Node *node) |
virtual void | clear () |
virtual Eigen::MatrixXd | createTransform () |
virtual double & | element (size_t row, size_t column) |
| Returns a reference to the indicated element of the local transformation of coordinate system.
|
virtual Eigen::MatrixXd | getLocalCoordinates () const |
| Returns the local transformation of coordinate system.
|
virtual Score & | getScore () |
virtual void | produceOrTransform (Score &collectingScore, size_t beginAt, size_t endAt, const Eigen::MatrixXd &coordinates) |
| This function is called by the traverse() function.
|
virtual void | setElement (size_t row, size_t column, double value) |
| Sets the indicated element of the local transformation of coordinate system.
|
| Stack () |
virtual Eigen::MatrixXd | traverse (const Eigen::MatrixXd &globalCoordinates, Score &collectingScore) |
| 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.
|
virtual | ~Stack () |
Data Fields |
std::vector< Node * > | children |
| Child Nodes, if any.
|
double | duration |
| If non-zero, then each the notes of each child node in turn are rescaled to fit within this duration; if zero, then the notes of each child node are rescaled to fit within the duration of the first (0th) node.
|
std::string | importFilename |
Detailed Description
The notes produced by each (not all) child node, are rescaled to all start at the same time, and last for the same duration; that of the 0th child, or a specified duration.
Constructor & Destructor Documentation
virtual csound::Stack::~Stack |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual void csound::Node::addChild |
( |
Node * |
node | ) |
|
|
virtualinherited |
virtual void csound::Node::clear |
( |
| ) |
|
|
virtualinherited |
virtual Eigen::MatrixXd csound::Node::createTransform |
( |
| ) |
|
|
virtualinherited |
virtual double& csound::Node::element |
( |
size_t |
row, |
|
|
size_t |
column |
|
) |
| |
|
virtualinherited |
Returns a reference to the indicated element of the local transformation of coordinate system.
virtual Eigen::MatrixXd csound::Node::getLocalCoordinates |
( |
| ) |
const |
|
virtualinherited |
Returns the local transformation of coordinate system.
virtual Score& csound::ScoreNode::getScore |
( |
| ) |
|
|
virtualinherited |
virtual void csound::ScoreNode::produceOrTransform |
( |
Score & |
collectingScore, |
|
|
size_t |
beginAt, |
|
|
size_t |
endAt, |
|
|
const Eigen::MatrixXd & |
compositeCordinates |
|
) |
| |
|
virtualinherited |
This function is called by the traverse() function.
The default implementation does nothing. If a derived node produces new Events, then it must transform them by the composite coordinates, then append them to the collecting score. If a derived node transforms Events produced by child Nodes, then it must transform only Events in the collecting score starting at the startAt index and continuing up to, but not including, the endAt index. These bookmarks, in turn, must be set in the Traverse function by all Nodes that produce events.
Reimplemented from csound::Node.
Reimplemented in csound::Cell, csound::MCRM, and csound::Rescale.
virtual void csound::Node::setElement |
( |
size_t |
row, |
|
|
size_t |
column, |
|
|
double |
value |
|
) |
| |
|
virtualinherited |
Sets the indicated element of the local transformation of coordinate system.
virtual Eigen::MatrixXd csound::Stack::traverse |
( |
const Eigen::MatrixXd & |
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 from csound::Node.
Field Documentation
std::vector<Node *> csound::Node::children |
|
inherited |
double csound::Stack::duration |
If non-zero, then each the notes of each child node in turn are rescaled to fit within this duration; if zero, then the notes of each child node are rescaled to fit within the duration of the first (0th) node.
std::string csound::ScoreNode::importFilename |
|
inherited |
Eigen::MatrixXd csound::Node::localCoordinates |
|
protectedinherited |
Score csound::ScoreNode::score |
|
protectedinherited |