#include <Random.hpp>
Inherits csound::Node.
Public Member Functions
Static Public Member Functions
Data Fields
Static Public Attributes
Protected Attributes
Detailed Description
A random value will be sampled from the specified distribution, translated and scaled as specified, and set in the specified row and column of the local coordinates. The resulting matrix will be used in place of the local coordinates when traversing the music graph. If eventCount is greater than zero, a new event will be created for each of eventCount samples, which will be transformed by the newly sampled local coordinates.
Constructor & Destructor Documentation
csound::Random::Random |
( |
|
) |
|
virtual csound::Random::~Random |
( |
|
) |
[virtual] |
Member Function Documentation
virtual void csound::Node::addChild |
( |
Node * |
node |
) |
[virtual, inherited] |
virtual void csound::Node::clear |
( |
|
) |
[virtual, inherited] |
virtual void csound::Random::createDistribution |
( |
std::string |
distribution |
) |
[virtual] |
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::Random::getLocalCoordinates |
( |
|
) |
const [virtual] |
Returns the local transformation of coordinate system.
Reimplemented from csound::Node.
virtual void csound::Random::produceOrTransform |
( |
Score & |
score, |
|
|
size_t |
beginAt, |
|
|
size_t |
endAt, |
|
|
const ublas::matrix< double > & |
coordinates | |
|
) |
| | [virtual] |
The default implementation does nothing.
Reimplemented from csound::Node.
virtual double csound::Random::sample |
( |
|
) |
const [virtual] |
static void csound::Random::seed |
( |
int |
s |
) |
[static] |
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.
Field Documentation