20 #ifndef PLUGINPROCESSOR_H_INCLUDED
21 #define PLUGINPROCESSOR_H_INCLUDED
23 #include "../JuceLibraryCode/JuceHeader.h"
31 #define NUMSTEPS(min, max, prec) ( (int) (((max)-(min))/(prec)) + 1)
63 void processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages);
324 ScopedPointer<wonder::SourceController> sourceController_;
328 bool showOtherSources_;
340 #endif // PLUGINPROCESSOR_H_INCLUDED
void setShowOtherSources(bool showOtherSources)
Set the GUI's showOtherSources parameter (As this parameters shall be restorable via getStateInformat...
Definition: PluginProcessor.cpp:340
const String getName() const
Definition: PluginProcessor.cpp:41
bool acceptsMidi() const
Definition: PluginProcessor.cpp:131
int getNumParameters()
Returns the number of automatable parameters of this plugin.
Definition: PluginProcessor.cpp:46
bool showOtherSources() const
Returns true if the GUI shall show all active sources.
Definition: PluginProcessor.cpp:335
int getNumPrograms()
Returns 0.
Definition: PluginProcessor.cpp:159
void setZoomFactor(float zoomFactor)
Sets the zoom factor for the GUI.
Definition: PluginProcessor.cpp:330
void getStateInformation(MemoryBlock &destData)
Stores the current state of the plugin (including the state of the source controlled by this plugin) ...
Definition: PluginProcessor.cpp:221
void timerCallback()
Callback from the timer.
const String getParameterName(int index)
Forwards the call to the wonder::Source::getParameterName method of the source controlled by this plu...
Definition: PluginProcessor.cpp:68
float getParameter(int index)
Forwards the call to the wonder::Source::getParameter method of the source controlled by this plugin...
Definition: PluginProcessor.cpp:51
const String getProgramName(int index)
Returns an empty juce::String.
Definition: PluginProcessor.cpp:173
~SpaopAudioProcessor()
Destructor.
Definition: PluginProcessor.cpp:36
bool setCWonderAddress(const std::string &ip, const std::string &port)
Sets the address where outgoing OSC messages will be sent in "linked to WONDER" mode will be sent (i...
Definition: PluginProcessor.cpp:355
void setShowNames(bool showNames)
Set the GUI's showNames parameter (As this parameters shall be restorable via getStateInformation and...
Definition: PluginProcessor.cpp:350
const String getParameterText(int index)
Forwards the call to the wonder::Source::getParameterText method of the source controlled by this plu...
Definition: PluginProcessor.cpp:73
void changeProgramName(int index, const String &newName)
Does nothing.
Definition: PluginProcessor.cpp:178
bool isInputChannelStereoPair(int index) const
Definition: PluginProcessor.cpp:121
void setCoordinatesNotifyingHost(float normalizedX, float normalizedY)
Sets the coordinates, notifying both the host and the OSC-messaging.
Definition: PluginProcessor.cpp:307
wonder::SourceController * getSourceController() const
Returns a pointer to the wonder::SourceController object that contains the main logic and the communi...
Definition: PluginProcessor.cpp:314
const String getOutputChannelName(int channelIndex) const
Definition: PluginProcessor.cpp:116
float getZoomFactor() const
Returns the zoom factor for the GUI.
Definition: PluginProcessor.cpp:325
void setCoordinates(float normalizedX, float normalizedY)
Sets the coordinates, sending the corresponding OSC-message.
Definition: PluginProcessor.cpp:302
bool producesMidi() const
Definition: PluginProcessor.cpp:140
int getCurrentProgram()
Returns 0.
Definition: PluginProcessor.cpp:164
SpaopAudioProcessor()
Constructor.
Definition: PluginProcessor.cpp:25
void releaseResources()
Definition: PluginProcessor.cpp:189
double getTailLengthSeconds() const
Definition: PluginProcessor.cpp:154
AutomatedParameters
Parameters that can be automated by the host must be accessed using this enum.
Definition: Source.h:81
void setParameter(int index, float newValue)
Forwards the call to the wonder::SourceController::setParameterAndSendChange.
Definition: PluginProcessor.cpp:56
const String getParameterTextByValue(int index, float value)
Forwards the call to the wonder::Source::getParameterTextByValue method of the source controlled by t...
Definition: PluginProcessor.cpp:78
void processBlock(AudioSampleBuffer &buffer, MidiBuffer &midiMessages)
Definition: PluginProcessor.cpp:195
float getParameterDefaultValue(int index)
Forwards the call to wonder::Source::getParameterDefaultValue.
Definition: PluginProcessor.cpp:83
float getParameterByText(int parameterIndex, const String ¶meterText)
Forwards the call to the wonder::Source::getParameterByText method of the source controlled by this p...
Definition: PluginProcessor.cpp:61
int getParameterNumSteps(int index)
Definition: PluginProcessor.cpp:88
bool silenceInProducesSilenceOut() const
Definition: PluginProcessor.cpp:149
An interface for a listener that listens to various callbacks triggered by incoming messages or conne...
Definition: SourceController.h:51
void setStateInformation(const void *data, int sizeInBytes)
Retores the a state of the plugin (including the state of the source controlled by this plugin) from ...
Definition: PluginProcessor.cpp:250
The SPAOP-plugin's processor class.
Definition: PluginProcessor.h:42
void prepareToPlay(double sampleRate, int samplesPerBlock)
Definition: PluginProcessor.cpp:183
void setCurrentProgram(int index)
Does nothing.
Definition: PluginProcessor.cpp:169
const String getInputChannelName(int channelIndex) const
Definition: PluginProcessor.cpp:111
bool hasEditor() const
Definition: PluginProcessor.cpp:210
AudioProcessorEditor * createEditor()
Definition: PluginProcessor.cpp:215
bool showNames() const
Returns true if the GUI shall the sources' names.
Definition: PluginProcessor.cpp:345
The main communication node that keeps track of all virtual sources and enables the host DAW to contr...
Definition: SourceController.h:42
bool isOutputChannelStereoPair(int index) const
Definition: PluginProcessor.cpp:126