#include <ImageToScore.hpp>
Inherits csound::ScoreNode.
Public Member Functions
Data Fields
Protected Member Functions
- virtual void getPixel (size_t x, size_t y, double &hue, double &saturation, double &value) const
- virtual void translate (double x, double y, double hue, double value, Event &event) const
Static Protected Member Functions
- static void rgbToHsv (double r, double g, double b, double &h, double &s, double &v)
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] |
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] |
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