Public Member Functions | Data Fields | Protected Attributes | Private Attributes

CppSound Class Reference

#include <CppSound.hpp>

Inherits CsoundFile.

Inherited by CsoundVST.

Public Member Functions

Data Fields

Protected Attributes

Private Attributes


Constructor & Destructor Documentation

CppSound::CppSound (  ) 
virtual CppSound::~CppSound (  )  [virtual]

Member Function Documentation

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

Reimplemented from CsoundFile.

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

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::importMidifile ( std::istream &  stream  )  [virtual, inherited]
virtual int CsoundFile::importOrchestra ( std::istream &  stream  )  [virtual, inherited]
virtual int CsoundFile::importScore ( std::istream &  stream  )  [virtual, inherited]
virtual void CppSound::inputMessage ( const char *  istatement  )  [virtual]
virtual void CsoundFile::insertArrangement ( int  index,
std::string  instrument 
) [virtual, inherited]
virtual int CsoundFile::load ( std::string  filename  )  [virtual, inherited]

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  )  [virtual, inherited]
virtual bool CsoundFile::loadOrcLibrary ( const char *  filename = 0  )  [virtual, inherited]
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 (  )  [virtual, inherited]
virtual void CsoundFile::removeArrangement ( int  index  )  [virtual, inherited]
virtual void CsoundFile::removeArrangement (  )  [virtual, inherited]
virtual void CsoundFile::removeCommand (  )  [virtual, inherited]
virtual void CsoundFile::removeMidifile (  )  [virtual, inherited]
virtual void CsoundFile::removeOrchestra (  )  [virtual, inherited]
virtual void CsoundFile::removeScore (  )  [virtual, inherited]
virtual int CsoundFile::save ( std::string  filename  )  const [virtual, inherited]
virtual int CsoundFile::save ( std::ostream &  stream  )  const [virtual, inherited]
virtual void CsoundFile::setArrangement ( int  index,
std::string  instrument 
) [virtual, inherited]
virtual void CsoundFile::setCommand ( std::string  commandLine  )  [virtual, inherited]
virtual void CsoundFile::setCSD ( std::string  xml  )  [virtual, inherited]
virtual void CsoundFile::setFilename ( std::string  name  )  [virtual, inherited]
virtual void CppSound::setIsPerforming ( bool  isPerforming  )  [virtual]
virtual void CsoundFile::setOrchestra ( std::string  orchestra  )  [virtual, inherited]
virtual void CsoundFile::setScore ( std::string  score  )  [virtual, inherited]
virtual void CppSound::stop (  )  [virtual]
virtual void CppSound::write ( const char *  text  )  [virtual]

Field Documentation

std::vector<std::string> CsoundFile::args [protected, inherited]
std::vector<char *> CsoundFile::argv [protected, inherited]
std::vector<std::string> CsoundFile::arrangement [inherited]
std::string CsoundFile::command [protected, inherited]

CsOptions

std::string CsoundFile::filename [protected, inherited]

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 [protected, inherited]

CsMidi

std::string CsoundFile::orchestra [protected, inherited]

CsInstruments

std::string CppSound::renderedSoundfile [private]
std::string CsoundFile::score [protected, inherited]

CsScore

size_t CppSound::spoutSize [private]