Public Member Functions | Protected Attributes

csound::Composition Class Reference

#include <Composition.hpp>

Inherited by csound::ScoreModel.

Public Member Functions

Protected Attributes


Detailed Description

Base class for user-defined musical compositions. Contains a Score object for collecting generated Events such as notes and control messages.


Constructor & Destructor Documentation

csound::Composition::Composition (  ) 
virtual csound::Composition::~Composition (  )  [virtual]

Member Function Documentation

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

Clear all contents of this. Probably should be overridden in derived classes.

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

Generate performance events and store them in the score. Must be overidden in derived classes.

virtual bool csound::Composition::getConformPitches (  )  const [virtual]

Returns whether or not the pitches in generated scores will be conformed to the nearest equally tempered pitch.

virtual Score& csound::Composition::getScore (  )  [virtual]

Return the self-contained Score.

virtual double csound::Composition::getTonesPerOctave (  )  const [virtual]

Returns the number of equally tempered intervals per octave (the default is 12, 0 means non-equally tempered).

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

Performs the current score. The default implementation does nothing.

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

Convenience function that erases the existing score, invokes generate(), and invokes perform().

virtual void csound::Composition::setConformPitches ( bool  conformPitches  )  [virtual]

Sets whether or not the pitches in generated scores will be conformed to the nearest equally tempered pitch.

virtual void csound::Composition::setTonesPerOctave ( double  tonesPerOctave  )  [virtual]

Sets the number of equally tempered intervals per octave (the default is 12, 0 means non-equally tempered).

virtual void csound::Composition::write ( const char *  text  )  [virtual]

Write as if to stderr.


Field Documentation