ASPiK SDK
plugincore.h
1 // -----------------------------------------------------------------------------
2 // ASPiK Plugin Kernel File: plugincore.h
3 //
12 // -----------------------------------------------------------------------------
13 #ifndef __pluginCore_h__
14 #define __pluginCore_h__
15 
16 #include "pluginbase.h"
17 
18 // **--0x7F1F--**
19 
20 
21 // **--0x0F1F--**
22 
43 class PluginCore : public PluginBase
44 {
45 public:
46  PluginCore();
47 
49  virtual ~PluginCore(){}
50 
51  // --- PluginBase Overrides ---
52  //
54  bool initPluginParameters();
55 
57  virtual bool reset(ResetInfo& resetInfo);
58 
60  virtual bool initialize(PluginInfo& _pluginInfo);
61 
62  // --- preProcess: sync GUI parameters here; override if you don't want to use automatic variable-binding
63  virtual bool preProcessAudioBuffers(ProcessBufferInfo& processInfo);
64 
66  virtual bool processAudioFrame(ProcessFrameInfo& processFrameInfo);
67 
68  // --- uncomment and override this for buffer processing; see base class implementation for
69  // help on breaking up buffers and getting info from processBufferInfo
70  //virtual bool processAudioBuffers(ProcessBufferInfo& processBufferInfo);
71 
73  virtual bool postProcessAudioBuffers(ProcessBufferInfo& processInfo);
74 
76  virtual bool updatePluginParameter(int32_t controlID, double controlValue, ParameterUpdateInfo& paramInfo);
77 
79  virtual bool updatePluginParameterNormalized(int32_t controlID, double normalizedValue, ParameterUpdateInfo& paramInfo);
80 
82  virtual bool postUpdatePluginParameter(int32_t controlID, double controlValue, ParameterUpdateInfo& paramInfo);
83 
85  virtual bool guiParameterChanged(int32_t controlID, double actualValue);
86 
88  virtual bool processMessage(MessageInfo& messageInfo);
89 
91  virtual bool processMIDIEvent(midiEvent& event);
92 
94  virtual bool setVectorJoystickParameters(const VectorJoystickData& vectorJoysickData);
95 
97  bool initPluginPresets();
98 
99  // --- BEGIN USER VARIABLES AND FUNCTIONS -------------------------------------- //
100  // Add your variables and methods here
101 
102 
103 
104  // --- END USER VARIABLES AND FUNCTIONS -------------------------------------- //
105 
106 private:
107  // **--0x07FD--**
108 
109  // **--0x1A7F--**
110  // --- end member variables
111 
112 public:
117  static const char* getPluginBundleName();
118 
123  static const char* getPluginName();
124 
129  static const char* getShortPluginName();
130 
135  static const char* getVendorName();
136 
141  static const char* getVendorURL();
142 
147  static const char* getVendorEmail();
148 
153  static const char* getAUCocoaViewFactoryName();
154 
159  static pluginType getPluginType();
160 
165  static const char* getVSTFUID();
166 
171  static int32_t getFourCharCode();
172 
174  bool initPluginDescriptors();
175 
176 };
177 
178 
179 
180 
181 #endif /* defined(__pluginCore_h__) */
Information that includes the message code as well as the message data.
Definition: pluginstructures.h:705
static const char * getShortPluginName()
Definition: plugincore.cpp:500
bool initPluginDescriptors()
setup the plugin description strings, flags and codes; this is ordinarily done through the ASPiKreato...
Definition: plugincore.cpp:460
static int32_t getFourCharCode()
Definition: plugincore.cpp:507
Information package that arrives with each new audio frame; called internally from the buffer process...
Definition: pluginstructures.h:1111
static const char * getAUCocoaViewFactoryName()
Definition: plugincore.cpp:504
bool initPluginPresets()
use this method to add new presets to the list
Definition: plugincore.cpp:446
virtual bool processMIDIEvent(midiEvent &event)
process a MIDI event
Definition: plugincore.cpp:415
virtual bool setVectorJoystickParameters(const VectorJoystickData &vectorJoysickData)
(for future use)
Definition: plugincore.cpp:431
virtual bool processAudioFrame(ProcessFrameInfo &processFrameInfo)
frame-processing method
Definition: plugincore.cpp:152
The PluginBase object is the base class for the Plugin Core object.
Definition: pluginbase.h:221
virtual bool processMessage(MessageInfo &messageInfo)
For Custom View and Custom Sub-Controller Operations.
Definition: plugincore.cpp:355
Information about a paraemeter being updated. Used when bound variables are updated. Multiple advanced uses.
Definition: pluginstructures.h:834
static const char * getPluginName()
Definition: plugincore.cpp:499
Sample rate and bit-depth information that is passed during the reset( ) function.
Definition: pluginstructures.h:180
virtual bool updatePluginParameterNormalized(int32_t controlID, double normalizedValue, ParameterUpdateInfo &paramInfo)
update the PluginParameter's value based on normlaized GUI control, preset, or data smoothing (thread...
Definition: plugincore.cpp:266
bool initPluginParameters()
create all of your plugin parameters here
Definition: plugincore.cpp:60
PluginCore()
PluginCore constructor is launching pad for object initialization.
Definition: plugincore.cpp:25
pluginType
Use this enum to identify the plugin category.
Definition: pluginstructures.h:61
Information package that arrives with each new audio buffer process cycle. Contains everything needed...
Definition: pluginstructures.h:1057
virtual bool updatePluginParameter(int32_t controlID, double controlValue, ParameterUpdateInfo &paramInfo)
update the PluginParameter's value based on GUI control, preset, or data smoothing (thread-safe) ...
Definition: plugincore.cpp:242
Incoming data from a vector joystick.
Definition: pluginstructures.h:276
virtual bool guiParameterChanged(int32_t controlID, double actualValue)
has nothing to do with actual variable or updated variable (binding)
Definition: plugincore.cpp:326
virtual ~PluginCore()
Definition: plugincore.h:49
virtual bool preProcessAudioBuffers(ProcessBufferInfo &processInfo)
do anything needed prior to arrival of audio buffers
Definition: plugincore.cpp:131
virtual bool initialize(PluginInfo &_pluginInfo)
one-time initialize function called after object creation and before the first reset( ) call ...
Definition: plugincore.cpp:110
virtual bool postUpdatePluginParameter(int32_t controlID, double controlValue, ParameterUpdateInfo &paramInfo)
perform any operations after the plugin parameter has been updated; this is one paradigm for transfer...
Definition: plugincore.cpp:290
static const char * getPluginBundleName()
Definition: plugincore.cpp:498
The PluginCore object is the default PluginBase derived object for ASPiK projects. Note that you are fre to change the name of this object (as long as you change it in the compiler settings, etc...)
Definition: plugincore.h:43
static const char * getVendorEmail()
Definition: plugincore.cpp:503
static pluginType getPluginType()
Definition: plugincore.cpp:505
virtual bool postProcessAudioBuffers(ProcessBufferInfo &processInfo)
do anything needed prior to arrival of audio buffers
Definition: plugincore.cpp:220
static const char * getVSTFUID()
Definition: plugincore.cpp:506
Structure that is used during the base class initilize( ) funciton call, after object instantiation i...
Definition: pluginstructures.h:753
static const char * getVendorURL()
Definition: plugincore.cpp:502
virtual bool reset(ResetInfo &resetInfo)
initialize object for a new run of audio; called just before audio streams
Definition: plugincore.cpp:94
static const char * getVendorName()
Definition: plugincore.cpp:501
Information about a MIDI event.
Definition: pluginstructures.h:561