csound::Composition Class Reference

#include <Composition.hpp>

Inherited by csound::MusicModel.

Public Member Functions

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]

Return Csound command line (convenience wrapper for CppSound::getCommand()).

virtual std::string csound::Composition::getCsoundOrchestra (  )  const [virtual]

Return the Csound orchestra (convenience wrapper for CppSound::getOrchestra()).

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]

Remove instrument number, gain, and pan assignments (convenience wrapper for Score::removeArrangement()).

virtual void csound::Composition::render (  )  [virtual]

Convenience function that erases the existing score, appends optional text to it, invokes generate(), invokes createCsoundScore(), and invokes perform().

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]

Set Csound command line (convenience wrapper for CppSound::setCommand()).

virtual void csound::Composition::setCsoundOrchestra ( std::string  orchestra  )  [virtual]

Set the Csound orchestra (convenience wrapper for CppSound::setOrchestra()).

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

std::string csound::Composition::csoundScoreHeader [protected]

Prepended to generated score.


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