csound::Composition Class Reference
#include <Composition.hpp>
Inherited by csound::MusicModel.
Public Member Functions
- virtual void arrange (int silenceInstrumentNumber, std::string csoundInstrumentName, double gain, double pan)
- virtual void arrange (int silenceInstrumentNumber, std::string csoundInstrumentName, double gain)
- virtual void arrange (int silenceInstrumentNumber, std::string csoundInstrumentName)
- virtual void arrange (int oldInstrumentNumber, int newInstrumentNumber, double gain, double pan)
- virtual void arrange (int oldInstrumentNumber, int newInstrumentNumber, double gain)
- virtual void arrange (int oldInstrumentNumber, int newInstrumentNumber)
- virtual void clear ()
- Composition ()
- virtual void createCsoundScore (std::string addToScore="", double extendSeconds=5.0)
- virtual void generate ()
- virtual bool getConformPitches () const
- virtual CppSound * getCppSound ()
- virtual std::string getCsoundCommand () const
- virtual std::string getCsoundOrchestra () const
- virtual std::string getCsoundScoreHeader () const
- virtual Score & getScore ()
- virtual double getTonesPerOctave () const
- virtual void perform ()
- virtual void removeArrangement ()
- virtual void render ()
- virtual void setConformPitches (bool conformPitches)
- virtual void setCppSound (CppSound *orchestra)
- virtual void setCsoundCommand (std::string command)
- virtual void setCsoundOrchestra (std::string orchestra)
- virtual void setCsoundScoreHeader (std::string header)
- virtual void setTonesPerOctave (double tonesPerOctave)
- virtual void write (const char *text)
- virtual ~Composition ()
Protected Attributes
Detailed Description
Base class for user-derived musical compositions. Contains a Score object for collecting generated Events such as notes and control messages, and an Orchestra object for rendering the generated scores.
Constructor & Destructor Documentation
csound::Composition::Composition |
( |
|
) |
|
virtual csound::Composition::~Composition |
( |
|
) |
[virtual] |
Member Function Documentation
virtual void csound::Composition::arrange |
( |
int |
silenceInstrumentNumber, |
|
|
std::string |
csoundInstrumentName, |
|
|
double |
gain, |
|
|
double |
pan | |
|
) |
| | [virtual] |
Re-assign instrument by name, adjust gain, and change pan for export to Csound score.
virtual void csound::Composition::arrange |
( |
int |
silenceInstrumentNumber, |
|
|
std::string |
csoundInstrumentName, |
|
|
double |
gain | |
|
) |
| | [virtual] |
Re-assign instrument by name and adjust gains for export to Csound score.
virtual void csound::Composition::arrange |
( |
int |
silenceInstrumentNumber, |
|
|
std::string |
csoundInstrumentName | |
|
) |
| | [virtual] |
Re-assign instrument by name for export to Csound score.
virtual void csound::Composition::arrange |
( |
int |
oldInstrumentNumber, |
|
|
int |
newInstrumentNumber, |
|
|
double |
gain, |
|
|
double |
pan | |
|
) |
| | [virtual] |
Re-assign instrument number, adjust gain, and change pan for export to Csound score (convenience wrapper for Score::arrange()).
virtual void csound::Composition::arrange |
( |
int |
oldInstrumentNumber, |
|
|
int |
newInstrumentNumber, |
|
|
double |
gain | |
|
) |
| | [virtual] |
Re-assign instrument number and adjust gain for export to Csound score (convenience wrapper for Score::arrange()).
virtual void csound::Composition::arrange |
( |
int |
oldInstrumentNumber, |
|
|
int |
newInstrumentNumber | |
|
) |
| | [virtual] |
Re-assign instrument number for export to Csound score (convenience wrapper for Score::arrange()).
virtual void csound::Composition::clear |
( |
|
) |
[virtual] |
Clear all contents of this. Probably should be overridden in derived classes.
Reimplemented in csound::MusicModel.
virtual void csound::Composition::createCsoundScore |
( |
std::string |
addToScore = "" , |
|
|
double |
extendSeconds = 5.0 | |
|
) |
| | [virtual] |
Translate the generated score to a Csound score and export it for performance. The time given by extendSeconds is used for a concluding e statement.
virtual void csound::Composition::generate |
( |
|
) |
[virtual] |
Generate performance events and store them in the score. Must be overidden in derived classes.
Reimplemented in csound::MusicModel.
virtual bool csound::Composition::getConformPitches |
( |
|
) |
const [virtual] |
virtual CppSound* csound::Composition::getCppSound |
( |
|
) |
[virtual] |
Return the self-contained Orchestra.
virtual std::string csound::Composition::getCsoundCommand |
( |
|
) |
const [virtual] |
virtual std::string csound::Composition::getCsoundOrchestra |
( |
|
) |
const [virtual] |
virtual std::string csound::Composition::getCsoundScoreHeader |
( |
|
) |
const [virtual] |
Return the Csound score header that is prepended to generated scores.
virtual Score& csound::Composition::getScore |
( |
|
) |
[virtual] |
Return the self-contained Score.
virtual double csound::Composition::getTonesPerOctave |
( |
|
) |
const [virtual] |
virtual void csound::Composition::perform |
( |
|
) |
[virtual] |
Uses csound to perform the current score.
virtual void csound::Composition::removeArrangement |
( |
|
) |
[virtual] |
virtual void csound::Composition::render |
( |
|
) |
[virtual] |
virtual void csound::Composition::setConformPitches |
( |
bool |
conformPitches |
) |
[virtual] |
virtual void csound::Composition::setCppSound |
( |
CppSound * |
orchestra |
) |
[virtual] |
Sets the self-contained Orchestra.
virtual void csound::Composition::setCsoundCommand |
( |
std::string |
command |
) |
[virtual] |
virtual void csound::Composition::setCsoundOrchestra |
( |
std::string |
orchestra |
) |
[virtual] |
virtual void csound::Composition::setCsoundScoreHeader |
( |
std::string |
header |
) |
[virtual] |
Set a Csound score fragment to be prepended to the generated score (createCsoundScore is called with it).
virtual void csound::Composition::setTonesPerOctave |
( |
double |
tonesPerOctave |
) |
[virtual] |
virtual void csound::Composition::write |
( |
const char * |
text |
) |
[virtual] |
Write as if to stdout or stderr.
Field Documentation
Prepended to generated score.