|
Csound and CsoundAC API
5.17
|
#include <ScoreGeneratorVst.hpp>
Inheritance diagram for ScoreGeneratorVst:Public Member Functions | |
| virtual VstInt32 | canDo (char *text) |
| virtual void | clear () |
| virtual void | clearEvents () |
| Remove all stored events from the event array. | |
| virtual void | close () |
| virtual void | closeView () |
| virtual bool | copyProgram (VstInt32 destination) |
| virtual size_t | event (double start, double duration, double status, double channel, double data1, double data2) |
| Python function to add an event to the stored event array. | |
| virtual int | generate () |
| Clear the event array; execute the stored Python script, which may generate events and add them to the event array; sort the event array; mark this plugin as live. | |
| virtual VstInt32 | getChunk (void **data, bool isPreset) |
| virtual AEffEditor * | getEditor () |
| virtual bool | getEffectName (char *name) |
| virtual std::string | getFilename () const |
| virtual bool | getInputProperties (VstInt32 index, VstPinProperties *properties) |
| virtual std::string | getMidiFilename () const |
| virtual bool | getOutputProperties (VstInt32 index, VstPinProperties *properties) |
| virtual std::string | getOutputSoundfileName () const |
| virtual VstPlugCategory | getPlugCategory () |
| virtual bool | getProductString (char *name) |
| virtual VstInt32 | getProgram () |
| virtual void | getProgramName (char *name) |
| virtual bool | getProgramNameIndexed (VstInt32 category, VstInt32 index, char *text) |
| virtual std::string | getScript () const |
| virtual std::string | getText () |
| virtual bool | getVendorString (char *name) |
| virtual void | initialize () |
| virtual bool | keysRequired () |
| virtual void | load (std::string filename) |
| virtual void | loadAppend (std::string filename) |
| virtual void | log (char *message) |
| Python function to print a message to the log window. | |
| virtual void | logv (char *format,...) |
| virtual void | main (int argc, char **argv) |
| virtual void | open () |
| Initialize the embedded Python interpreter, create a ScoreGenerator proxy, bind it to this. | |
| virtual void | openFile (std::string filename) |
| virtual void | openView (bool doRun=true) |
| virtual void | process (float **inputs, float **outputs, VstInt32 sampleFrames) |
| virtual VstInt32 | processEvents (VstEvents *vstEvents) |
| virtual void | processReplacing (float **inputs, float **outputs, VstInt32 sampleFrames) |
| virtual void | reset () |
| virtual void | resume () |
| virtual int | runScript () |
| virtual int | runScript (std::string script_) |
| Run a Python script using the embedded interpreter. | |
| virtual void | save (std::string filename) const |
| virtual void | save () const |
| ScoreGeneratorVst (audioMasterCallback audioMaster) | |
| ScoreGeneratorVst () | |
| virtual void | sendEvents (VstInt32 frames) |
| Send all events occurring within the current block of sample frames, relative to the start of the track or part, to the host. | |
| virtual VstInt32 | setChunk (void *data, VstInt32 byteSize, bool isPreset) |
| virtual void | setFilename (std::string filename) |
| virtual void | setProgram (VstInt32 program) |
| virtual void | setProgramName (char *name) |
| virtual void | setScript (std::string text) |
| virtual void | setText (const std::string text) |
| virtual void | stop () |
| virtual void | suspend () |
| virtual bool | synchronizeScore (VstInt32 blockSize) |
| virtual | ~ScoreGeneratorVst () |
Static Public Member Functions | |
| static std::string | generateFilename () |
Data Fields | |
| std::vector< Preset > | bank |
Protected Types | |
| enum | { kNumInputs = 2 } |
| enum | { kNumOutputs = 2 } |
| enum | { kNumPrograms = 10 } |
Protected Attributes | |
| char | alive |
| std::string | filename |
| PyObject * | score |
| std::multimap< double, ScoreGeneratorEvent > | scoreGeneratorEvents |
| ScoreGeneratorVstFltk * | scoreGeneratorVstFltk |
| std::string | script |
| double | vstCurrentBlockStart |
| double | vstCurrentBlockStartFrame |
| VstEvents * | vstEventsPointer |
| double | vstFramesPerSecond |
| double | vstInputLatency |
| double | vstInputLatencySeconds |
| std::vector< VstMidiEvent > | vstMidiEventsBuffer |
| double | vstSecondsPerFrame |
| bool | vstTransportActive |
Static Protected Attributes | |
| static void * | pythonLibrary |
| static const char * | pythonLibraryPathList [] |
| ScoreGeneratorVst::ScoreGeneratorVst | ( | audioMasterCallback | audioMaster | ) |
| virtual ScoreGeneratorVst::~ScoreGeneratorVst | ( | ) | [virtual] |
| virtual VstInt32 ScoreGeneratorVst::canDo | ( | char * | text | ) | [virtual] |
| virtual void csound::Shell::clear | ( | ) | [virtual, inherited] |
| virtual void ScoreGeneratorVst::clearEvents | ( | ) | [virtual] |
Remove all stored events from the event array.
| virtual void csound::Shell::close | ( | ) | [virtual, inherited] |
| virtual void ScoreGeneratorVst::closeView | ( | ) | [virtual] |
| virtual bool ScoreGeneratorVst::copyProgram | ( | VstInt32 | destination | ) | [virtual] |
| virtual size_t ScoreGeneratorVst::event | ( | double | start, |
| double | duration, | ||
| double | status, | ||
| double | channel, | ||
| double | data1, | ||
| double | data2 | ||
| ) | [virtual] |
Python function to add an event to the stored event array.
If the event is a "note on", a matching "note off" event is created and stored as well.
| virtual int ScoreGeneratorVst::generate | ( | ) | [virtual] |
Clear the event array; execute the stored Python script, which may generate events and add them to the event array; sort the event array; mark this plugin as live.
| static std::string csound::Shell::generateFilename | ( | ) | [static, inherited] |
| virtual VstInt32 ScoreGeneratorVst::getChunk | ( | void ** | data, |
| bool | isPreset | ||
| ) | [virtual] |
| virtual AEffEditor* ScoreGeneratorVst::getEditor | ( | ) | [virtual] |
| virtual bool ScoreGeneratorVst::getEffectName | ( | char * | name | ) | [virtual] |
| virtual std::string csound::Shell::getFilename | ( | ) | const [virtual, inherited] |
| virtual bool ScoreGeneratorVst::getInputProperties | ( | VstInt32 | index, |
| VstPinProperties * | properties | ||
| ) | [virtual] |
| virtual std::string csound::Shell::getMidiFilename | ( | ) | const [virtual, inherited] |
| virtual bool ScoreGeneratorVst::getOutputProperties | ( | VstInt32 | index, |
| VstPinProperties * | properties | ||
| ) | [virtual] |
| virtual std::string csound::Shell::getOutputSoundfileName | ( | ) | const [virtual, inherited] |
| virtual VstPlugCategory ScoreGeneratorVst::getPlugCategory | ( | ) | [virtual] |
| virtual bool ScoreGeneratorVst::getProductString | ( | char * | name | ) | [virtual] |
| virtual VstInt32 ScoreGeneratorVst::getProgram | ( | ) | [virtual] |
| virtual void ScoreGeneratorVst::getProgramName | ( | char * | name | ) | [virtual] |
| virtual bool ScoreGeneratorVst::getProgramNameIndexed | ( | VstInt32 | category, |
| VstInt32 | index, | ||
| char * | text | ||
| ) | [virtual] |
| virtual std::string csound::Shell::getScript | ( | ) | const [virtual, inherited] |
| virtual std::string ScoreGeneratorVst::getText | ( | ) | [virtual] |
| virtual bool ScoreGeneratorVst::getVendorString | ( | char * | name | ) | [virtual] |
| virtual void csound::Shell::initialize | ( | ) | [virtual, inherited] |
| virtual bool ScoreGeneratorVst::keysRequired | ( | ) | [virtual] |
| virtual void csound::Shell::load | ( | std::string | filename | ) | [virtual, inherited] |
| virtual void csound::Shell::loadAppend | ( | std::string | filename | ) | [virtual, inherited] |
| virtual void ScoreGeneratorVst::log | ( | char * | message | ) | [virtual] |
Python function to print a message to the log window.
Newlines are not automatically added, but must be embedded in the message string.
| virtual void ScoreGeneratorVst::logv | ( | char * | format, |
| ... | |||
| ) | [virtual] |
| virtual void csound::Shell::main | ( | int | argc, |
| char ** | argv | ||
| ) | [virtual, inherited] |
| virtual void ScoreGeneratorVst::open | ( | ) | [virtual] |
Initialize the embedded Python interpreter, create a ScoreGenerator proxy, bind it to this.
Reimplemented from csound::Shell.
| virtual void ScoreGeneratorVst::openFile | ( | std::string | filename | ) | [virtual] |
| virtual void ScoreGeneratorVst::openView | ( | bool | doRun = true | ) | [virtual] |
| virtual void ScoreGeneratorVst::process | ( | float ** | inputs, |
| float ** | outputs, | ||
| VstInt32 | sampleFrames | ||
| ) | [virtual] |
| virtual VstInt32 ScoreGeneratorVst::processEvents | ( | VstEvents * | vstEvents | ) | [virtual] |
| virtual void ScoreGeneratorVst::processReplacing | ( | float ** | inputs, |
| float ** | outputs, | ||
| VstInt32 | sampleFrames | ||
| ) | [virtual] |
| virtual void ScoreGeneratorVst::reset | ( | ) | [virtual] |
| virtual void ScoreGeneratorVst::resume | ( | ) | [virtual] |
| virtual int csound::Shell::runScript | ( | ) | [virtual, inherited] |
| virtual int ScoreGeneratorVst::runScript | ( | std::string | script_ | ) | [virtual] |
Run a Python script using the embedded interpreter.
The script will have access to the 'score' proxy object for this, with event and log functions, also std::vector<VstMidiEvent> functions.
Reimplemented from csound::Shell.
| virtual void csound::Shell::save | ( | std::string | filename | ) | const [virtual, inherited] |
| virtual void csound::Shell::save | ( | ) | const [virtual, inherited] |
| virtual void ScoreGeneratorVst::sendEvents | ( | VstInt32 | frames | ) | [virtual] |
Send all events occurring within the current block of sample frames, relative to the start of the track or part, to the host.
| virtual VstInt32 ScoreGeneratorVst::setChunk | ( | void * | data, |
| VstInt32 | byteSize, | ||
| bool | isPreset | ||
| ) | [virtual] |
| virtual void csound::Shell::setFilename | ( | std::string | filename | ) | [virtual, inherited] |
| virtual void ScoreGeneratorVst::setProgram | ( | VstInt32 | program | ) | [virtual] |
| virtual void ScoreGeneratorVst::setProgramName | ( | char * | name | ) | [virtual] |
| virtual void csound::Shell::setScript | ( | std::string | text | ) | [virtual, inherited] |
| virtual void ScoreGeneratorVst::setText | ( | const std::string | text | ) | [virtual] |
| virtual void csound::Shell::stop | ( | ) | [virtual, inherited] |
| virtual void ScoreGeneratorVst::suspend | ( | ) | [virtual] |
| virtual bool ScoreGeneratorVst::synchronizeScore | ( | VstInt32 | blockSize | ) | [virtual] |
char ScoreGeneratorVst::alive [protected] |
| std::vector<Preset> ScoreGeneratorVst::bank |
std::string csound::Shell::filename [protected, inherited] |
void* csound::Shell::pythonLibrary [static, protected, inherited] |
const char* csound::Shell::pythonLibraryPathList[] [static, protected, inherited] |
PyObject* ScoreGeneratorVst::score [protected] |
std::multimap<double, ScoreGeneratorEvent> ScoreGeneratorVst::scoreGeneratorEvents [protected] |
std::string csound::Shell::script [protected, inherited] |
double ScoreGeneratorVst::vstCurrentBlockStart [protected] |
double ScoreGeneratorVst::vstCurrentBlockStartFrame [protected] |
VstEvents* ScoreGeneratorVst::vstEventsPointer [protected] |
double ScoreGeneratorVst::vstFramesPerSecond [protected] |
double ScoreGeneratorVst::vstInputLatency [protected] |
double ScoreGeneratorVst::vstInputLatencySeconds [protected] |
std::vector<VstMidiEvent> ScoreGeneratorVst::vstMidiEventsBuffer [protected] |
double ScoreGeneratorVst::vstSecondsPerFrame [protected] |
bool ScoreGeneratorVst::vstTransportActive [protected] |
1.7.6.1