All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
MonophonicEffectProcessor Class Referenceabstract
Inheritance diagram for MonophonicEffectProcessor:
EffectProcessor Processor SafeChangeBroadcaster RestorableObject ControlledObject

Public Member Functions

void renderAllChains (int startSample, int numSamples)
virtual void applyEffect (AudioSampleBuffer &b, int startSample, int numSamples)=0
virtual void renderNextBlock (AudioSampleBuffer &buffer, int startSample, int numSamples) override
- Public Member Functions inherited from EffectProcessor
virtual void prepareToPlay (double sampleRate, int samplesPerBlock)
virtual bool hasTail () const =0
virtual bool isTailingOff () const
- Public Member Functions inherited from Processor
 Processor (MainController *m, const String &id_)
virtual ~Processor ()
virtual ProcessorEditorBodycreateEditor (ProcessorEditor *parentEditor)=0
virtual ValueTree exportAsValueTree () const override
virtual void restoreFromValueTree (const ValueTree &previouslyExportedProcessorState) override
virtual const Identifier getType () const =0
const Path getSymbol () const
void setSymbol (Path newSymbol)
void setAttribute (int parameterIndex, float newValue, juce::NotificationType notifyEditor)
virtual float getAttribute (int parameterIndex) const =0
virtual float getDefaultValue (int) const
virtual ProcessorgetChildProcessor (int processorIndex)=0
virtual int getNumChildProcessors () const =0
virtual int getNumInternalChains () const
void enableConsoleOutput (bool shouldBeEnabled)
const String & getId () const
virtual const String getName () const
virtual void setBypassed (bool shouldBeBypassed, NotificationType notifyChangeHandler=dontSendNotification) noexcept
bool isBypassed () const noexcept
double getSampleRate () const
int getBlockSize () const
float getOutputValue () const
float getInputValue () const
void setEditorState (int state, bool isOn, NotificationType notifyView=sendNotification)
bool getEditorState (int state) const
void restoreCompleteEditorState (const XmlElement *storedState)
const Identifier getIdentifierForParameterIndex (int parameterIndex) const
int getNumParameters () const
void setIsOnAir (bool isBeingProcessedInAudioThread)
const CriticalSection & getDummyLockWhenNotOnAir () const
- Public Member Functions inherited from SafeChangeBroadcaster
void sendSynchronousChangeMessage ()
void addChangeListener (SafeChangeListener *listener)
void removeChangeListener (SafeChangeListener *listener)
void removeAllChangeListeners ()
void sendChangeMessage (const String &=String())
void sendAllocationFreeChangeMessage ()
- Public Member Functions inherited from ControlledObject
 ControlledObject (MainController *m)
const MainControllergetMainController () const noexcept
MainControllergetMainController () noexcept

Additional Inherited Members

- Public Types inherited from Processor
enum  SpecialParameters
enum  InternalChains
- Protected Member Functions inherited from EffectProcessor
virtual AudioSampleBuffer & getBufferForChain (int)
void saveBufferForTailCheck (AudioSampleBuffer &b, int startSample, int numSamples)
void checkTailing (AudioSampleBuffer &b, int startSample, int numSamples)
int calculateStepSize (int, int numSamples)
- Protected Member Functions inherited from Processor
void setOutputValue (float newValue)
void setInputValue (float newValue, NotificationType notify=sendNotification)
virtual void setInternalAttribute (int parameterIndex, float newValue)=0

Detailed Description

A EffectProcessor which allows monophonic modulation of its parameters.

If your effect wants to do more than modulate the wet amount or anything else that can be achieved with a trivial multiplication, you can subclass it from this class and it takes care of the following things:

Beware that this leads to multiple calls if the modulation buffers contain large dynamics / the incoming midi messages are frequent, so if you need heavy processing, consider using MasterEffectProcessor class, which also allows modulation of the basic parameters.

Member Function Documentation

virtual void applyEffect ( AudioSampleBuffer &  b,
int  startSample,
int  numSamples 
pure virtual

A wrapper function around the actual processing.

You can assume that all internal chains are processed and the numSample amount is set according to the stepsize calculated with calculateStepSize(). That means you can grab the current modulation value using getCurrentModulationValue(), set the parameters and process the block with smooth parameter changes.

Also this effect grabs the whole buffer (it can be divided by incoming midi messages for VoiceEffectProcessors).

void renderAllChains ( int  startSample,
int  numSamples 

Renders all chains (envelopes & voicestart are rendered monophonically.

virtual void renderNextBlock ( AudioSampleBuffer &  buffer,
int  startSample,
int  numSamples 

Renders the next block and applies the effect to the buffer.

Implements EffectProcessor.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.