Logo Search packages:      
Sourcecode: csound version File versions  Download package

csound::ScoreModel Class Reference

#include <ScoreModel.hpp>

Inheritance diagram for csound::ScoreModel:

csound::Composition csound::Node csound::MusicModel

List of all members.


Detailed Description

Base class for compositions that use the principle of a music graph to generate a score. A music graph is a directed acyclic graph of nodes including empty nodes, nodes that contain only child nodes, score nodes, event generator nodes, event transformer nodes, and others. Each node is associated with a local transformation of coordinate system in music space using a 12 x 12 homogeneous matrix. To generate the score, the music graph is traversed depth first, and each node postconcatenates its local transformation of coordinate system with the coordinate system of its parent to derive a new local coordinate system, which is applied to all child events.

Definition at line 53 of file ScoreModel.hpp.


Public Member Functions

virtual void addChild (Node *node)
virtual void clear ()
virtual ublas::matrix< double > createTransform ()
virtual double & element (size_t row, size_t column)
virtual void generate ()
virtual bool getConformPitches () const
virtual std::string getFilename () const
virtual ublas::matrix< double > getLocalCoordinates () const
virtual std::string getMidiFilename ()
virtual std::string getOutputSoundfileName ()
virtual ScoregetScore ()
virtual long getThis ()
virtual NodegetThisNode ()
virtual double getTonesPerOctave () const
virtual void initialize ()
virtual void perform ()
virtual void produceOrTransform (Score &score, size_t beginAt, size_t endAt, const ublas::matrix< double > &coordinates)
virtual void render ()
virtual void setConformPitches (bool conformPitches)
virtual void setElement (size_t row, size_t column, double value)
virtual void setFilename (std::string filename)
virtual void setTonesPerOctave (double tonesPerOctave)
virtual ublas::matrix< double > traverse (const ublas::matrix< double > &globalCoordinates, Score &score)
virtual void write (const char *text)

Static Public Member Functions

static std::string generateFilename ()

Public Attributes

std::vector< Node * > children

Protected Attributes

bool conformPitches
std::string filename
ublas::matrix< double > localCoordinates
Score score
double tonesPerOctave

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index