The notes produced by each child node are intercut to produce the notes produced by this; e.g.
More...
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 () |
| Intercut () |
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.
|
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 | ~Intercut () |
The notes produced by each child node are intercut to produce the notes produced by this; e.g.
if there are 3 child nodes, then the notes produced by this are node 0 note 0, node 1 note 0, node 2 note 0; node 0 note 1, node 1 note 1, node node 2 note 1; node 0 note 2, node 1 note 2, node 2 note 2, and so on. If the child nodes do not each produce the same number of notes, then production stops with the last note of the longest child.
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.