Csound and CsoundAC API  5.17
Public Member Functions | Data Fields | Protected Attributes | Private Attributes
CppSound Class Reference

#include <CppSound.hpp>

+ Inheritance diagram for CppSound:

Public Member Functions

virtual void addArrangement (std::string instrument)
virtual void addNote (double p1, double p2, double p3, double p4, double p5, double p6, double p7, double p8, double p9, double p10, double p11)
virtual void addNote (double p1, double p2, double p3, double p4, double p5, double p6, double p7, double p8, double p9, double p10)
virtual void addNote (double p1, double p2, double p3, double p4, double p5, double p6, double p7, double p8, double p9)
virtual void addNote (double p1, double p2, double p3, double p4, double p5, double p6, double p7, double p8)
virtual void addNote (double p1, double p2, double p3, double p4, double p5, double p6, double p7)
virtual void addNote (double p1, double p2, double p3, double p4, double p5, double p6)
virtual void addNote (double p1, double p2, double p3, double p4, double p5)
virtual void addNote (double p1, double p2, double p3, double p4)
virtual void addNote (double p1, double p2, double p3)
virtual void addScoreLine (const std::string line)
virtual void cleanup ()
virtual int compile (int argc, char **argv)
virtual int compile ()
 CppSound ()
virtual int exportArrangement (std::ostream &stream) const
virtual int exportArrangementForPerformance (std::string filename) const
virtual int exportArrangementForPerformance (std::ostream &stream) const
virtual int exportCommand (std::ostream &stream) const
virtual bool exportForPerformance () const
virtual int exportMidifile (std::ostream &stream) const
virtual int exportOrchestra (std::ostream &stream) const
virtual int exportScore (std::ostream &stream) const
virtual std::string generateFilename ()
virtual std::string getArrangement (int index) const
virtual int getArrangementCount () const
virtual std::string getCommand () const
virtual std::string getCSD () const
virtual CSOUNDgetCsound ()
virtual CsoundFilegetCsoundFile ()
virtual std::string getFilename () const
virtual bool getInstrument (int number, std::string &definition) const
virtual bool getInstrument (std::string name, std::string &definition) const
virtual std::string getInstrument (std::string name) const
virtual std::string getInstrument (int number) const
virtual std::string getInstrumentBody (std::string name) const
virtual std::string getInstrumentBody (int number) const
virtual int getInstrumentCount () const
virtual std::map< int,
std::string > 
getInstrumentNames () const
virtual double getInstrumentNumber (std::string name) const
virtual bool getIsCompiled () const
virtual bool getIsGo ()
virtual bool getIsPerforming () const
virtual std::string getMidiFilename () const
virtual std::string getOrcFilename () const
virtual std::string getOrchestra () const
virtual std::string getOrchestraHeader () const
virtual std::string getOutputSoundfileName () const
virtual std::string getScoFilename () const
virtual std::string getScore () const
virtual size_t getSpoutSize () const
virtual long getThis ()
virtual int importArrangement (std::istream &stream)
virtual int importCommand (std::istream &stream)
virtual int importFile (std::string filename)
 Imports the indicated file, which can be a Csound unified file (.csd), Csound orchestra (.orc), Csound score (.sco), standard MIDI file (.mid), or MusicXML v2 (.xml) file.
virtual int importFile (std::istream &stream)
virtual int importMidifile (std::istream &stream)
virtual int importOrchestra (std::istream &stream)
virtual int importScore (std::istream &stream)
virtual void inputMessage (const char *istatement)
virtual void insertArrangement (int index, std::string instrument)
virtual int load (std::string filename)
 Clears all contents of this, then imports the indicated file, which can be a Csound unified file (.csd), Csound orchestra (.orc), Csound score (.sco), standard MIDI file (.mid), or MusicXML v2 (.xml) file.
virtual int load (std::istream &stream)
virtual bool loadOrcLibrary (const char *filename=0)
virtual int perform (int argc, char **argv)
virtual int perform ()
virtual int performKsmps (bool absolute)
virtual void removeAll ()
virtual void removeArrangement (int index)
virtual void removeArrangement ()
virtual void removeCommand ()
virtual void removeMidifile ()
virtual void removeOrchestra ()
virtual void removeScore ()
virtual int save (std::string filename) const
virtual int save (std::ostream &stream) const
virtual void setArrangement (int index, std::string instrument)
virtual void setCommand (std::string commandLine)
virtual void setCSD (std::string xml)
virtual void setFilename (std::string name)
virtual void setIsPerforming (bool isPerforming)
virtual void setOrchestra (std::string orchestra)
virtual void setScore (std::string score)
virtual void stop ()
virtual void write (const char *text)
virtual ~CppSound ()

Data Fields

std::vector< std::string > arrangement
std::string libraryFilename
 Patch library and arrangement.

Protected Attributes

std::vector< std::string > args
std::vector< char * > argv
std::string command
 CsOptions.
std::string filename
 What are we storing, anyway?
std::vector< unsigned char > midifile
 CsMidi.
std::string orchestra
 CsInstruments.
std::string score
 CsScore.

Private Attributes

bool go
bool isCompiled
bool isPerforming
std::string renderedSoundfile
size_t spoutSize

Constructor & Destructor Documentation

CppSound::CppSound ( )
inline
virtual CppSound::~CppSound ( )
virtual

Member Function Documentation

virtual void CsoundFile::addArrangement ( std::string  instrument)
virtualinherited
virtual void CsoundFile::addNote ( double  p1,
double  p2,
double  p3,
double  p4,
double  p5,
double  p6,
double  p7,
double  p8,
double  p9,
double  p10,
double  p11 
)
virtualinherited
virtual void CsoundFile::addNote ( double  p1,
double  p2,
double  p3,
double  p4,
double  p5,
double  p6,
double  p7,
double  p8,
double  p9,
double  p10 
)
virtualinherited
virtual void CsoundFile::addNote ( double  p1,
double  p2,
double  p3,
double  p4,
double  p5,
double  p6,
double  p7,
double  p8,
double  p9 
)
virtualinherited
virtual void CsoundFile::addNote ( double  p1,
double  p2,
double  p3,
double  p4,
double  p5,
double  p6,
double  p7,
double  p8 
)
virtualinherited
virtual void CsoundFile::addNote ( double  p1,
double  p2,
double  p3,
double  p4,
double  p5,
double  p6,
double  p7 
)
virtualinherited
virtual void CsoundFile::addNote ( double  p1,
double  p2,
double  p3,
double  p4,
double  p5,
double  p6 
)
virtualinherited
virtual void CsoundFile::addNote ( double  p1,
double  p2,
double  p3,
double  p4,
double  p5 
)
virtualinherited
virtual void CsoundFile::addNote ( double  p1,
double  p2,
double  p3,
double  p4 
)
virtualinherited
virtual void CsoundFile::addNote ( double  p1,
double  p2,
double  p3 
)
virtualinherited
virtual void CsoundFile::addScoreLine ( const std::string  line)
virtualinherited
virtual void CppSound::cleanup ( )
virtual
virtual int CppSound::compile ( int  argc,
char **  argv 
)
virtual
virtual int CppSound::compile ( )
virtual
virtual int CsoundFile::exportArrangement ( std::ostream &  stream) const
virtualinherited
virtual int CsoundFile::exportArrangementForPerformance ( std::string  filename) const
virtualinherited
virtual int CsoundFile::exportArrangementForPerformance ( std::ostream &  stream) const
virtualinherited
virtual int CsoundFile::exportCommand ( std::ostream &  stream) const
virtualinherited
virtual bool CsoundFile::exportForPerformance ( ) const
virtualinherited
virtual int CsoundFile::exportMidifile ( std::ostream &  stream) const
virtualinherited
virtual int CsoundFile::exportOrchestra ( std::ostream &  stream) const
virtualinherited
virtual int CsoundFile::exportScore ( std::ostream &  stream) const
virtualinherited
virtual std::string CsoundFile::generateFilename ( )
virtualinherited
virtual std::string CsoundFile::getArrangement ( int  index) const
virtualinherited
virtual int CsoundFile::getArrangementCount ( ) const
virtualinherited
virtual std::string CsoundFile::getCommand ( ) const
virtualinherited
virtual std::string CsoundFile::getCSD ( ) const
virtualinherited
virtual CSOUND* CppSound::getCsound ( )
virtual
virtual CsoundFile* CppSound::getCsoundFile ( )
virtual
virtual std::string CsoundFile::getFilename ( ) const
virtualinherited
virtual bool CsoundFile::getInstrument ( int  number,
std::string &  definition 
) const
virtualinherited
virtual bool CsoundFile::getInstrument ( std::string  name,
std::string &  definition 
) const
virtualinherited
virtual std::string CsoundFile::getInstrument ( std::string  name) const
virtualinherited
virtual std::string CsoundFile::getInstrument ( int  number) const
virtualinherited
virtual std::string CsoundFile::getInstrumentBody ( std::string  name) const
virtualinherited
virtual std::string CsoundFile::getInstrumentBody ( int  number) const
virtualinherited
virtual int CsoundFile::getInstrumentCount ( ) const
virtualinherited
virtual std::map<int, std::string> CsoundFile::getInstrumentNames ( ) const
virtualinherited
virtual double CsoundFile::getInstrumentNumber ( std::string  name) const
virtualinherited
virtual bool CppSound::getIsCompiled ( ) const
virtual
virtual bool CppSound::getIsGo ( )
virtual
virtual bool CppSound::getIsPerforming ( ) const
virtual
virtual std::string CsoundFile::getMidiFilename ( ) const
virtualinherited
virtual std::string CsoundFile::getOrcFilename ( ) const
virtualinherited
virtual std::string CsoundFile::getOrchestra ( ) const
virtualinherited
virtual std::string CsoundFile::getOrchestraHeader ( ) const
virtualinherited
virtual std::string CppSound::getOutputSoundfileName ( ) const
virtual

Reimplemented from CsoundFile.

virtual std::string CsoundFile::getScoFilename ( ) const
virtualinherited
virtual std::string CsoundFile::getScore ( ) const
virtualinherited
virtual size_t CppSound::getSpoutSize ( ) const
virtual
virtual long CppSound::getThis ( )
virtual
virtual int CsoundFile::importArrangement ( std::istream &  stream)
virtualinherited
virtual int CsoundFile::importCommand ( std::istream &  stream)
virtualinherited
virtual int CsoundFile::importFile ( std::string  filename)
virtualinherited

Imports the indicated file, which can be a Csound unified file (.csd), Csound orchestra (.orc), Csound score (.sco), standard MIDI file (.mid), or MusicXML v2 (.xml) file.

The data that is read replaces existing data of that type, but leaves other types of data untouched.

The MusicXML notes become instrument number + 1, time in seconds, duration in seconds, MIDI key number, and MIDI velocity number.

virtual int CsoundFile::importFile ( std::istream &  stream)
virtualinherited
virtual int CsoundFile::importMidifile ( std::istream &  stream)
virtualinherited
virtual int CsoundFile::importOrchestra ( std::istream &  stream)
virtualinherited
virtual int CsoundFile::importScore ( std::istream &  stream)
virtualinherited
virtual void CppSound::inputMessage ( const char *  istatement)
virtual
virtual void CsoundFile::insertArrangement ( int  index,
std::string  instrument 
)
virtualinherited
virtual int CsoundFile::load ( std::string  filename)
virtualinherited

Clears all contents of this, then imports the indicated file, which can be a Csound unified file (.csd), Csound orchestra (.orc), Csound score (.sco), standard MIDI file (.mid), or MusicXML v2 (.xml) file.

The MusicXML notes become instrument number + 1, time in seconds, duration in seconds, MIDI key number, and MIDI velocity number.

virtual int CsoundFile::load ( std::istream &  stream)
virtualinherited
virtual bool CsoundFile::loadOrcLibrary ( const char *  filename = 0)
virtualinherited
virtual int CppSound::perform ( int  argc,
char **  argv 
)
virtual
virtual int CppSound::perform ( )
virtual
virtual int CppSound::performKsmps ( bool  absolute)
virtual
virtual void CsoundFile::removeAll ( )
virtualinherited
virtual void CsoundFile::removeArrangement ( int  index)
virtualinherited
virtual void CsoundFile::removeArrangement ( )
virtualinherited
virtual void CsoundFile::removeCommand ( )
virtualinherited
virtual void CsoundFile::removeMidifile ( )
virtualinherited
virtual void CsoundFile::removeOrchestra ( )
virtualinherited
virtual void CsoundFile::removeScore ( )
virtualinherited
virtual int CsoundFile::save ( std::string  filename) const
virtualinherited
virtual int CsoundFile::save ( std::ostream &  stream) const
virtualinherited
virtual void CsoundFile::setArrangement ( int  index,
std::string  instrument 
)
virtualinherited
virtual void CsoundFile::setCommand ( std::string  commandLine)
virtualinherited
virtual void CsoundFile::setCSD ( std::string  xml)
virtualinherited
virtual void CsoundFile::setFilename ( std::string  name)
virtualinherited
virtual void CppSound::setIsPerforming ( bool  isPerforming)
virtual
virtual void CsoundFile::setOrchestra ( std::string  orchestra)
virtualinherited
virtual void CsoundFile::setScore ( std::string  score)
virtualinherited
virtual void CppSound::stop ( )
virtual
virtual void CppSound::write ( const char *  text)
virtual

Field Documentation

std::vector<std::string> CsoundFile::args
protectedinherited
std::vector<char *> CsoundFile::argv
protectedinherited
std::vector<std::string> CsoundFile::arrangement
inherited
std::string CsoundFile::command
protectedinherited

CsOptions.

std::string CsoundFile::filename
protectedinherited

What are we storing, anyway?

bool CppSound::go
private
bool CppSound::isCompiled
private
bool CppSound::isPerforming
private
std::string CsoundFile::libraryFilename
inherited

Patch library and arrangement.

std::vector<unsigned char> CsoundFile::midifile
protectedinherited

CsMidi.

std::string CsoundFile::orchestra
protectedinherited

CsInstruments.

std::string CppSound::renderedSoundfile
private
std::string CsoundFile::score
protectedinherited

CsScore.

size_t CppSound::spoutSize
private