#include <CsoundVST.hpp>
Public Types | |
enum | { kNumInputs = 2 } |
enum | { kNumOutputs = 2 } |
enum | { kNumPrograms = 10 } |
Public Member Functions | |
CsoundVST (audioMasterCallback audioMaster) | |
virtual | ~CsoundVST () |
virtual AEffEditor * | getEditor () |
virtual bool | getEffectName (char *name) |
virtual bool | getVendorString (char *name) |
virtual bool | getProductString (char *name) |
virtual VstInt32 | canDo (char *text) |
virtual bool | getInputProperties (VstInt32 index, VstPinProperties *properties) |
virtual bool | getOutputProperties (VstInt32 index, VstPinProperties *properties) |
virtual bool | keysRequired () |
virtual VstInt32 | getProgram () |
virtual void | setProgram (VstInt32 program) |
virtual void | setProgramName (char *name) |
virtual void | getProgramName (char *name) |
virtual bool | copyProgram (VstInt32 destination) |
virtual bool | getProgramNameIndexed (VstInt32 category, VstInt32 index, char *text) |
virtual VstInt32 | getChunk (void **data, bool isPreset) |
virtual VstInt32 | setChunk (void *data, VstInt32 byteSize, bool isPreset) |
virtual void | suspend () |
virtual void | resume () |
virtual VstInt32 | processEvents (VstEvents *events) |
virtual void | process (float **inputs, float **outputs, VstInt32 sampleFrames) |
virtual void | processReplacing (float **inputs, float **outputs, VstInt32 sampleFrames) |
virtual void | open () |
CsoundVST () | |
virtual bool | getIsSynth () const |
virtual void | setIsSynth (bool isSynth) |
virtual bool | getIsVst () const |
virtual uintptr_t | performanceThreadRoutine () |
virtual int | performance () |
virtual std::string | getText () |
virtual void | setText (const std::string text) |
virtual void | synchronizeScore () |
virtual void | reset () |
virtual void | openFile (std::string filename) |
virtual void | openView (bool doRun=true) |
virtual void | closeView () |
virtual bool | getIsMultiThreaded () const |
virtual void | setIsMultiThreaded (bool isMultiThreaded) |
virtual void | fltklock () |
virtual void | fltkunlock () |
virtual void | fltkflush () |
virtual void | fltkwait () |
virtual int | fltkrun () |
virtual CSOUND * | getCsound () |
virtual long | getThis () |
virtual CsoundFile * | getCsoundFile () |
virtual int | compile (int argc, char **argv) |
virtual int | compile () |
virtual size_t | getSpoutSize () const |
virtual std::string | getOutputSoundfileName () const |
virtual int | perform (int argc, char **argv) |
virtual int | perform () |
virtual int | performKsmps (bool absolute) |
virtual void | cleanup () |
virtual void | inputMessage (const char *istatement) |
virtual void | write (const char *text) |
virtual bool | getIsCompiled () const |
virtual void | setIsPerforming (bool isPerforming) |
virtual bool | getIsPerforming () const |
virtual bool | getIsGo () |
virtual void | stop () |
virtual void | setPythonMessageCallback () |
virtual std::string | generateFilename () |
virtual std::string | getFilename () const |
virtual void | setFilename (std::string name) |
virtual int | load (std::string filename) |
virtual int | load (std::istream &stream) |
virtual int | save (std::string filename) const |
virtual int | save (std::ostream &stream) const |
virtual int | importFile (std::string filename) |
virtual int | importFile (std::istream &stream) |
virtual int | importCommand (std::istream &stream) |
virtual int | exportCommand (std::ostream &stream) const |
virtual int | importOrchestra (std::istream &stream) |
virtual int | exportOrchestra (std::ostream &stream) const |
virtual int | importScore (std::istream &stream) |
virtual int | exportScore (std::ostream &stream) const |
virtual int | importArrangement (std::istream &stream) |
virtual int | exportArrangement (std::ostream &stream) const |
virtual int | exportArrangementForPerformance (std::string filename) const |
virtual int | exportArrangementForPerformance (std::ostream &stream) const |
virtual int | importMidifile (std::istream &stream) |
virtual int | exportMidifile (std::ostream &stream) const |
virtual std::string | getCommand () const |
virtual void | setCommand (std::string commandLine) |
virtual std::string | getOrcFilename () const |
virtual std::string | getScoFilename () const |
virtual std::string | getMidiFilename () const |
virtual std::string | getOrchestra () const |
virtual void | setOrchestra (std::string orchestra) |
virtual int | getInstrumentCount () const |
virtual std::string | getOrchestraHeader () const |
virtual bool | getInstrument (int number, std::string &definition) const |
virtual bool | getInstrument (std::string name, std::string &definition) const |
virtual std::map< int, std::string > | getInstrumentNames () const |
virtual std::string | getScore () const |
virtual void | setScore (std::string score) |
virtual int | getArrangementCount () const |
virtual std::string | getArrangement (int index) const |
virtual void | addArrangement (std::string instrument) |
virtual void | setArrangement (int index, std::string instrument) |
virtual void | insertArrangement (int index, std::string instrument) |
virtual void | removeArrangement (int index) |
virtual void | removeArrangement () |
virtual void | setCSD (std::string xml) |
virtual std::string | getCSD () const |
virtual void | addScoreLine (const std::string line) |
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 bool | exportForPerformance () const |
virtual void | removeAll () |
virtual void | removeCommand () |
virtual void | removeOrchestra () |
virtual void | removeScore () |
virtual void | removeMidifile () |
virtual bool | loadOrcLibrary (const char *filename=0) |
Static Public Member Functions | |
static int | midiDeviceOpen (CSOUND *csound, void **userData, const char *devName) |
static int | midiRead (CSOUND *csound, void *userData, unsigned char *buf, int nbytes) |
Data Fields | |
bool | isSynth |
bool | isMultiThreaded |
size_t | csoundFrameI |
size_t | csoundLastFrame |
size_t | channelI |
size_t | channelN |
size_t | hostFrameI |
float | vstSr |
float | vstCurrentSampleBlockStart |
float | vstCurrentSampleBlockEnd |
float | vstCurrentSamplePosition |
float | vstPriorSamplePosition |
CsoundVstFltk * | csoundVstFltk |
std::list< VstMidiEvent > | midiEventQueue |
std::vector< Preset > | bank |
std::string | libraryFilename |
std::vector< std::string > | arrangement |
Static Public Attributes | |
static double | inputScale |
static double | outputScale |
static void * | fltkWaitThreadId |
Protected Attributes | |
std::string | filename |
std::string | command |
std::vector< std::string > | args |
std::vector< char * > | argv |
std::string | orchestra |
std::string | score |
std::vector< unsigned char > | midifile |
CsoundVST::CsoundVST | ( | audioMasterCallback | audioMaster | ) |
virtual CsoundVST::~CsoundVST | ( | ) | [virtual] |
CsoundVST::CsoundVST | ( | ) |
virtual AEffEditor* CsoundVST::getEditor | ( | ) | [virtual] |
virtual bool CsoundVST::getEffectName | ( | char * | name | ) | [virtual] |
virtual bool CsoundVST::getVendorString | ( | char * | name | ) | [virtual] |
virtual bool CsoundVST::getProductString | ( | char * | name | ) | [virtual] |
virtual VstInt32 CsoundVST::canDo | ( | char * | text | ) | [virtual] |
virtual bool CsoundVST::getInputProperties | ( | VstInt32 | index, | |
VstPinProperties * | properties | |||
) | [virtual] |
virtual bool CsoundVST::getOutputProperties | ( | VstInt32 | index, | |
VstPinProperties * | properties | |||
) | [virtual] |
virtual bool CsoundVST::keysRequired | ( | ) | [virtual] |
virtual VstInt32 CsoundVST::getProgram | ( | ) | [virtual] |
virtual void CsoundVST::setProgram | ( | VstInt32 | program | ) | [virtual] |
virtual void CsoundVST::setProgramName | ( | char * | name | ) | [virtual] |
virtual void CsoundVST::getProgramName | ( | char * | name | ) | [virtual] |
virtual bool CsoundVST::copyProgram | ( | VstInt32 | destination | ) | [virtual] |
virtual bool CsoundVST::getProgramNameIndexed | ( | VstInt32 | category, | |
VstInt32 | index, | |||
char * | text | |||
) | [virtual] |
virtual VstInt32 CsoundVST::getChunk | ( | void ** | data, | |
bool | isPreset | |||
) | [virtual] |
virtual VstInt32 CsoundVST::setChunk | ( | void * | data, | |
VstInt32 | byteSize, | |||
bool | isPreset | |||
) | [virtual] |
virtual void CsoundVST::suspend | ( | ) | [virtual] |
virtual void CsoundVST::resume | ( | ) | [virtual] |
virtual VstInt32 CsoundVST::processEvents | ( | VstEvents * | events | ) | [virtual] |
virtual void CsoundVST::process | ( | float ** | inputs, | |
float ** | outputs, | |||
VstInt32 | sampleFrames | |||
) | [virtual] |
virtual void CsoundVST::processReplacing | ( | float ** | inputs, | |
float ** | outputs, | |||
VstInt32 | sampleFrames | |||
) | [virtual] |
virtual void CsoundVST::open | ( | ) | [virtual] |
virtual bool CsoundVST::getIsSynth | ( | ) | const [virtual] |
virtual void CsoundVST::setIsSynth | ( | bool | isSynth | ) | [virtual] |
virtual bool CsoundVST::getIsVst | ( | ) | const [virtual] |
virtual uintptr_t CsoundVST::performanceThreadRoutine | ( | ) | [virtual] |
virtual int CsoundVST::performance | ( | ) | [virtual] |
virtual std::string CsoundVST::getText | ( | ) | [virtual] |
virtual void CsoundVST::setText | ( | const std::string | text | ) | [virtual] |
virtual void CsoundVST::synchronizeScore | ( | ) | [virtual] |
virtual void CsoundVST::reset | ( | ) | [virtual] |
virtual void CsoundVST::openFile | ( | std::string | filename | ) | [virtual] |
virtual void CsoundVST::openView | ( | bool | doRun = true |
) | [virtual] |
virtual void CsoundVST::closeView | ( | ) | [virtual] |
virtual bool CsoundVST::getIsMultiThreaded | ( | ) | const [virtual] |
virtual void CsoundVST::setIsMultiThreaded | ( | bool | isMultiThreaded | ) | [virtual] |
virtual void CsoundVST::fltklock | ( | ) | [virtual] |
virtual void CsoundVST::fltkunlock | ( | ) | [virtual] |
virtual void CsoundVST::fltkflush | ( | ) | [virtual] |
virtual void CsoundVST::fltkwait | ( | ) | [virtual] |
virtual int CsoundVST::fltkrun | ( | ) | [virtual] |
static int CsoundVST::midiDeviceOpen | ( | CSOUND * | csound, | |
void ** | userData, | |||
const char * | devName | |||
) | [static] |
static int CsoundVST::midiRead | ( | CSOUND * | csound, | |
void * | userData, | |||
unsigned char * | buf, | |||
int | nbytes | |||
) | [static] |
virtual CSOUND* CppSound::getCsound | ( | ) | [virtual, inherited] |
virtual long CppSound::getThis | ( | ) | [virtual, inherited] |
virtual CsoundFile* CppSound::getCsoundFile | ( | ) | [virtual, inherited] |
virtual int CppSound::compile | ( | int | argc, | |
char ** | argv | |||
) | [virtual, inherited] |
virtual int CppSound::compile | ( | ) | [virtual, inherited] |
virtual size_t CppSound::getSpoutSize | ( | ) | const [virtual, inherited] |
virtual std::string CppSound::getOutputSoundfileName | ( | ) | const [virtual, inherited] |
Reimplemented from CsoundFile.
virtual int CppSound::perform | ( | int | argc, | |
char ** | argv | |||
) | [virtual, inherited] |
virtual int CppSound::perform | ( | ) | [virtual, inherited] |
virtual int CppSound::performKsmps | ( | bool | absolute | ) | [virtual, inherited] |
virtual void CppSound::cleanup | ( | ) | [virtual, inherited] |
virtual void CppSound::inputMessage | ( | const char * | istatement | ) | [virtual, inherited] |
virtual void CppSound::write | ( | const char * | text | ) | [virtual, inherited] |
virtual bool CppSound::getIsCompiled | ( | ) | const [virtual, inherited] |
virtual void CppSound::setIsPerforming | ( | bool | isPerforming | ) | [virtual, inherited] |
virtual bool CppSound::getIsPerforming | ( | ) | const [virtual, inherited] |
virtual bool CppSound::getIsGo | ( | ) | [virtual, inherited] |
virtual void CppSound::stop | ( | ) | [virtual, inherited] |
virtual void CppSound::setPythonMessageCallback | ( | ) | [virtual, inherited] |
virtual std::string CsoundFile::generateFilename | ( | ) | [virtual, inherited] |
virtual std::string CsoundFile::getFilename | ( | ) | const [virtual, inherited] |
virtual void CsoundFile::setFilename | ( | std::string | name | ) | [virtual, inherited] |
virtual int CsoundFile::load | ( | std::string | filename | ) | [virtual, inherited] |
virtual int CsoundFile::load | ( | std::istream & | stream | ) | [virtual, inherited] |
virtual int CsoundFile::save | ( | std::string | filename | ) | const [virtual, inherited] |
virtual int CsoundFile::save | ( | std::ostream & | stream | ) | const [virtual, inherited] |
virtual int CsoundFile::importFile | ( | std::string | filename | ) | [virtual, inherited] |
virtual int CsoundFile::importFile | ( | std::istream & | stream | ) | [virtual, inherited] |
virtual int CsoundFile::importCommand | ( | std::istream & | stream | ) | [virtual, inherited] |
virtual int CsoundFile::exportCommand | ( | std::ostream & | stream | ) | const [virtual, inherited] |
virtual int CsoundFile::importOrchestra | ( | std::istream & | stream | ) | [virtual, inherited] |
virtual int CsoundFile::exportOrchestra | ( | std::ostream & | stream | ) | const [virtual, inherited] |
virtual int CsoundFile::importScore | ( | std::istream & | stream | ) | [virtual, inherited] |
virtual int CsoundFile::exportScore | ( | std::ostream & | stream | ) | const [virtual, inherited] |
virtual int CsoundFile::importArrangement | ( | std::istream & | stream | ) | [virtual, inherited] |
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::importMidifile | ( | std::istream & | stream | ) | [virtual, inherited] |
virtual int CsoundFile::exportMidifile | ( | std::ostream & | stream | ) | const [virtual, inherited] |
virtual std::string CsoundFile::getCommand | ( | ) | const [virtual, inherited] |
virtual void CsoundFile::setCommand | ( | std::string | commandLine | ) | [virtual, inherited] |
virtual std::string CsoundFile::getOrcFilename | ( | ) | const [virtual, inherited] |
virtual std::string CsoundFile::getScoFilename | ( | ) | const [virtual, inherited] |
virtual std::string CsoundFile::getMidiFilename | ( | ) | const [virtual, inherited] |
virtual std::string CsoundFile::getOrchestra | ( | ) | const [virtual, inherited] |
virtual void CsoundFile::setOrchestra | ( | std::string | orchestra | ) | [virtual, inherited] |
virtual int CsoundFile::getInstrumentCount | ( | ) | const [virtual, inherited] |
virtual std::string CsoundFile::getOrchestraHeader | ( | ) | 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::map<int, std::string> CsoundFile::getInstrumentNames | ( | ) | const [virtual, inherited] |
virtual std::string CsoundFile::getScore | ( | ) | const [virtual, inherited] |
virtual void CsoundFile::setScore | ( | std::string | score | ) | [virtual, inherited] |
virtual int CsoundFile::getArrangementCount | ( | ) | const [virtual, inherited] |
virtual std::string CsoundFile::getArrangement | ( | int | index | ) | const [virtual, inherited] |
virtual void CsoundFile::addArrangement | ( | std::string | instrument | ) | [virtual, inherited] |
virtual void CsoundFile::setArrangement | ( | int | index, | |
std::string | instrument | |||
) | [virtual, inherited] |
virtual void CsoundFile::insertArrangement | ( | int | index, | |
std::string | instrument | |||
) | [virtual, inherited] |
virtual void CsoundFile::removeArrangement | ( | int | index | ) | [virtual, inherited] |
virtual void CsoundFile::removeArrangement | ( | ) | [virtual, inherited] |
virtual void CsoundFile::setCSD | ( | std::string | xml | ) | [virtual, inherited] |
virtual std::string CsoundFile::getCSD | ( | ) | const [virtual, inherited] |
virtual void CsoundFile::addScoreLine | ( | const std::string | line | ) | [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 bool CsoundFile::exportForPerformance | ( | ) | const [virtual, inherited] |
virtual void CsoundFile::removeAll | ( | ) | [virtual, inherited] |
virtual void CsoundFile::removeCommand | ( | ) | [virtual, inherited] |
virtual void CsoundFile::removeOrchestra | ( | ) | [virtual, inherited] |
virtual void CsoundFile::removeScore | ( | ) | [virtual, inherited] |
virtual void CsoundFile::removeMidifile | ( | ) | [virtual, inherited] |
virtual bool CsoundFile::loadOrcLibrary | ( | const char * | filename = 0 |
) | [virtual, inherited] |
double CsoundVST::inputScale [static] |
double CsoundVST::outputScale [static] |
void* CsoundVST::fltkWaitThreadId [static] |
The thread that calls Fl::wait().
bool CsoundVST::isSynth |
size_t CsoundVST::csoundFrameI |
size_t CsoundVST::csoundLastFrame |
size_t CsoundVST::channelI |
size_t CsoundVST::channelN |
size_t CsoundVST::hostFrameI |
float CsoundVST::vstSr |
std::list<VstMidiEvent> CsoundVST::midiEventQueue |
std::vector<Preset> CsoundVST::bank |
std::string CsoundFile::filename [protected, inherited] |
What are we storing, anyway?
std::string CsoundFile::command [protected, inherited] |
CsOptions
std::vector<std::string> CsoundFile::args [protected, inherited] |
std::vector<char *> CsoundFile::argv [protected, inherited] |
std::string CsoundFile::orchestra [protected, inherited] |
CsInstruments
std::string CsoundFile::score [protected, inherited] |
CsScore
std::vector<unsigned char> CsoundFile::midifile [protected, inherited] |
CsMidi
std::string CsoundFile::libraryFilename [inherited] |
Patch library and arrangement.
std::vector<std::string> CsoundFile::arrangement [inherited] |