csound::ImageToScore Class Reference

#include <ImageToScore.hpp>

Inherits csound::ScoreNode.

Public Member Functions

Data Fields

Protected Member Functions

Static Protected Member Functions

Protected Attributes


Detailed Description

Translates images in various RGB formats to scores. Hue is mapped to instrument, value is mapped to loudness.

Constructor & Destructor Documentation

csound::ImageToScore::ImageToScore ( void   ) 

virtual csound::ImageToScore::~ImageToScore ( void   )  [virtual]


Member Function Documentation

virtual void csound::Node::addChild ( Node node  )  [virtual, inherited]

virtual void csound::Node::clear (  )  [virtual, inherited]

Reimplemented in csound::Lindenmayer, and csound::MusicModel.

virtual ublas::matrix<double> csound::Node::createTransform (  )  [virtual, inherited]

virtual double& csound::Node::element ( size_t  row,
size_t  column 
) [virtual, inherited]

virtual void csound::ImageToScore::generate (  )  [virtual]

virtual std::string csound::ImageToScore::getImageFilename (  )  const [virtual]

virtual ublas::matrix<double> csound::Node::getLocalCoordinates (  )  const [virtual, inherited]

Returns the local transformation of coordinate system.

Reimplemented in csound::Random.

virtual size_t csound::ImageToScore::getMaximumVoiceCount (  )  const [virtual]

virtual double csound::ImageToScore::getMinimumValue (  )  const [virtual]

virtual void csound::ImageToScore::getPixel ( size_t  x,
size_t  y,
double &  hue,
double &  saturation,
double &  value 
) const [protected, virtual]

virtual Score& csound::ScoreNode::getScore (  )  [virtual, inherited]

virtual void csound::ScoreNode::produceOrTransform ( Score score,
size_t  beginAt,
size_t  endAt,
const ublas::matrix< double > &  coordinates 
) [virtual, inherited]

The default implementation does nothing.

Reimplemented from csound::Node.

Reimplemented in csound::Cell, csound::Hocket, csound::MCRM, and csound::Rescale.

static void csound::ImageToScore::rgbToHsv ( double  r,
double  g,
double  b,
double &  h,
double &  s,
double &  v 
) [static, protected]

virtual void csound::Node::setElement ( size_t  row,
size_t  column,
double  value 
) [virtual, inherited]

virtual void csound::ImageToScore::setImageFilename ( std::string  imageFilename  )  [virtual]

virtual void csound::ImageToScore::setMaximumVoiceCount ( size_t  maximumVoiceCount  )  [virtual]

virtual void csound::ImageToScore::setMinimumValue ( double  minimumValue  )  [virtual]

virtual void csound::ImageToScore::translate ( double  x,
double  y,
double  hue,
double  value,
Event event 
) const [protected, virtual]

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

std::vector<Node *> csound::Node::children [inherited]

Child Nodes, if any.

Fl_Image* csound::ImageToScore::image [protected]

std::string csound::ImageToScore::imageFilename [protected]

std::string csound::ScoreNode::importFilename [inherited]

ublas::matrix<double> csound::Node::localCoordinates [protected, inherited]

Score csound::ScoreNode::score [protected, inherited]


Generated on Wed Jul 29 22:58:41 2009 for Csound and CsoundAC API by  doxygen 1.5.9