Csound and CsoundAC API
5.17
|
Generates notes by searching for a chaotic dynamical system defined by a polynomial equation or partial differential equation using Julien C. More...
#include <StrangeAttractor.hpp>
Public Member Functions | |
virtual void | addChild (Node *node) |
virtual void | calculateFractalDimension () |
virtual void | calculateLyupanovExponent () |
virtual void | clear () |
virtual void | codeRandomize () |
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 bool | evaluateAttractor () |
virtual void | generate () |
virtual int | getAttractorType () const |
virtual std::string | getCode () const |
virtual void | getCoefficients () |
virtual void | getDimensionAndOrder () |
virtual int | getDimensionCount () const |
virtual double | getFractalDimension () const |
virtual size_t | getIteration () const |
virtual size_t | getIterationCount () const |
virtual Eigen::MatrixXd | getLocalCoordinates () const |
Returns the local transformation of coordinate system. | |
virtual double | getLyupanovExponent () const |
virtual Score & | getScore () |
virtual int | getScoreType () const |
virtual double | getW () const |
virtual double | getX () const |
virtual double | getY () const |
virtual double | getZ () const |
virtual void | initialize () |
virtual void | iterate () |
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 | reinitialize () |
virtual void | render (int N, double X, double Y, double Z, double W) |
virtual void | reset () |
virtual bool | searchForAttractor () |
virtual void | setAttractorType (int attractorType) |
Types: 1 = 1-dimensional polynomial map, 2 = 2-dimensional polynomial map, 3 = 3-dimensional polynomial map, 4 = 4-dimensional polynomial map, 5 = 3-dimensional ODE, 6 = 4-dimensional ODE, 7 through 12 = special functions. | |
virtual void | setCode (std::string code) |
virtual void | setDimensionCount (int D) |
virtual void | setElement (size_t row, size_t column, double value) |
Sets the indicated element of the local transformation of coordinate system. | |
virtual void | setIteration (size_t iteration) |
virtual void | setIterationCount (size_t iterationCount) |
virtual void | setScoreType (int attractorType) |
virtual void | setW (double X) |
virtual void | setX (double X) |
virtual void | setY (double X) |
virtual void | setZ (double X) |
virtual void | shuffleRandomNumbers () |
virtual void | specialFunctions () |
StrangeAttractor (void) | |
virtual Eigen::MatrixXd | traverse (const Eigen::MatrixXd &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 | ~StrangeAttractor (void) |
Data Fields | |
std::vector< Node * > | children |
Child Nodes, if any. | |
std::string | importFilename |
Random | randomNode |
Protected Attributes | |
std::vector< double > | A |
double | AL |
std::string | code |
double | COSAL |
int | D |
double | D2 |
double | D2MAX |
int | DD |
double | decibels |
double | DF |
double | DL2 |
double | DLW |
double | DLX |
double | DLY |
double | DLZ |
double | DUM |
double | duration |
double | DW |
double | DX |
double | DY |
double | DZ |
double | EPS |
double | F |
std::string | filename |
int | I |
int | I1 |
int | I2 |
int | I3 |
int | I4 |
int | I5 |
double | instrument |
int | J |
double | L |
Eigen::MatrixXd | localCoordinates |
double | LSUM |
int | M |
double | MX |
double | MY |
int | N |
double | N1 |
double | N2 |
double | NL |
int | NMAX |
int | O |
double | octave |
int | ODE |
int | OMAX |
int | P |
double | pitchClassSet |
int | PREV |
double | PT |
double | RAN |
double | RS |
Score | score |
int | scoreType |
double | SH |
double | SINAL |
double | SW |
int | T |
double | TIA |
double | time |
double | TT |
int | TWOD |
std::vector< double > | V |
double | W |
double | WE |
double | WMAX |
double | WMIN |
double | WNEW |
double | WP |
std::vector< double > | WS |
double | WSAVE |
double | x |
double | X |
double | XA |
double | XE |
double | XH |
double | XL |
double | XMAX |
double | XMIN |
std::vector< double > | XN |
double | XNEW |
double | XP |
std::vector< double > | XS |
double | XSAVE |
double | XW |
std::vector< double > | XY |
double | XZ |
double | Y |
double | YA |
double | YE |
double | YH |
double | YL |
double | YMAX |
double | YMIN |
double | YNEW |
double | YP |
std::vector< double > | YS |
double | YSAVE |
double | YW |
double | YZ |
double | Z |
double | ZA |
double | ZE |
double | ZMAX |
double | ZMIN |
double | ZNEW |
double | ZP |
std::vector< double > | ZS |
double | ZSAVE |
Generates notes by searching for a chaotic dynamical system defined by a polynomial equation or partial differential equation using Julien C.
Sprott's Lyupanov exponent search, or by translating a known chaotic dynamical system into music, by interpreting each iteration of the system as a note. The time of the note can be represented either as the order of iteration, or as a dimension of the attractor. See Julien C. Sprott's book "Strange Attractors".
csound::StrangeAttractor::StrangeAttractor | ( | void | ) |
|
virtual |
|
virtualinherited |
|
virtual |
|
virtual |
|
virtualinherited |
Reimplemented in csound::ChordLindenmayer, csound::Lindenmayer, csound::MusicModel, and csound::ScoreModel.
|
virtual |
|
virtualinherited |
|
virtualinherited |
Returns a reference to the indicated element of the local transformation of coordinate system.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtualinherited |
Returns the local transformation of coordinate system.
|
virtual |
|
virtualinherited |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
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 |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Types: 1 = 1-dimensional polynomial map, 2 = 2-dimensional polynomial map, 3 = 3-dimensional polynomial map, 4 = 4-dimensional polynomial map, 5 = 3-dimensional ODE, 6 = 4-dimensional ODE, 7 through 12 = special functions.
|
virtual |
|
virtual |
|
virtualinherited |
Sets the indicated element of the local transformation of coordinate system.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtualinherited |
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::Koch, csound::Stack, csound::Intercut, csound::Hocket, and csound::Sequence.
|
protected |
|
protected |
|
inherited |
Child Nodes, if any.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inherited |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Random csound::StrangeAttractor::randomNode |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |