Csound and CsoundAC API 5.13
|
Score node that simplifies building up repetitive and overlapping motivic cells, such as used in Minimalism. More...
#include <Cell.hpp>
Public Member Functions | |
virtual void | addChild (Node *node) |
Cell () | |
virtual void | clear () |
virtual ublas::matrix< double > | createTransform () |
virtual double & | element (size_t row, size_t column) |
virtual ublas::matrix< double > | getLocalCoordinates () const |
Returns the local transformation of coordinate system. | |
virtual Score & | getScore () |
virtual void | produceOrTransform (Score &score, size_t beginAt, size_t endAt, const ublas::matrix< double > &coordinates) |
The default implementation does nothing. | |
virtual void | setElement (size_t row, size_t column, double value) |
virtual ublas::matrix< double > | traverse (const ublas::matrix< double > &globalCoordinates, Score &score) |
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 | ~Cell () |
Data Fields | |
std::vector< Node * > | children |
Child Nodes, if any. | |
double | durationSeconds |
std::string | importFilename |
bool | relativeDuration |
int | repeatCount |
Protected Attributes | |
ublas::matrix< double > | localCoordinates |
Score | score |
Score node that simplifies building up repetitive and overlapping motivic cells, such as used in Minimalism.
csound::Cell::Cell | ( | ) |
virtual csound::Cell::~Cell | ( | ) | [virtual] |
virtual void csound::Node::addChild | ( | Node * | node | ) | [virtual, inherited] |
virtual void csound::Node::clear | ( | ) | [virtual, inherited] |
Reimplemented in csound::ChordLindenmayer, csound::Lindenmayer, csound::MusicModel, and csound::ScoreModel.
virtual ublas::matrix<double> csound::Node::createTransform | ( | ) | [virtual, inherited] |
virtual double& csound::Node::element | ( | size_t | row, |
size_t | column | ||
) | [virtual, inherited] |
virtual ublas::matrix<double> csound::Node::getLocalCoordinates | ( | ) | const [virtual, inherited] |
Returns the local transformation of coordinate system.
virtual Score& csound::ScoreNode::getScore | ( | ) | [virtual, inherited] |
virtual void csound::Cell::produceOrTransform | ( | Score & | score, |
size_t | beginAt, | ||
size_t | endAt, | ||
const ublas::matrix< double > & | compositeCordinates | ||
) | [virtual] |
The default implementation does nothing.
Derived nodes that produce notes from scratch should transform them using the composite transformation of coordinate system, which is passed in from the traverse() function.
Reimplemented from csound::ScoreNode.
virtual void csound::Node::setElement | ( | size_t | row, |
size_t | column, | ||
double | value | ||
) | [virtual, inherited] |
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.
std::vector<Node *> csound::Node::children [inherited] |
Child Nodes, if any.
std::string csound::ScoreNode::importFilename [inherited] |
ublas::matrix<double> csound::Node::localCoordinates [protected, inherited] |
Score csound::ScoreNode::score [protected, inherited] |