All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | Protected Member Functions | List of all members
VoiceStartModulator Class Referenceabstract
Inheritance diagram for VoiceStartModulator:
Modulator VoiceModulation Processor Modulation SafeChangeBroadcaster RestorableObject ControlledObject ArrayModulator ConstantModulator KeyModulator RandomModulator VelocityModulator

Public Member Functions

virtual void startVoice (int voiceIndex) override
 
virtual ProcessorgetChildProcessor (int) overridefinal
 
virtual float getVoiceStartValue (int voiceIndex) const noexcept
 
virtual void handleHiseEvent (const HiseEvent &m) override
 
- Public Member Functions inherited from Modulator
 Modulator (MainController *m, const String &id)
 
virtual void setColour (Colour c)
 
void setPlotter (Plotter *targetPlotter)
 
void addValueToPlotter (float v) const
 
- Public Member Functions inherited from Processor
 Processor (MainController *m, const String &id_)
 
virtual ~Processor ()
 
virtual ProcessorEditorBodycreateEditor (ProcessorEditor *parentEditor)=0
 
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 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
 
virtual void prepareToPlay (double sampleRate_, int samplesPerBlock_)
 
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
 
- Public Member Functions inherited from Modulation
Mode getMode () const noexcept
 
float calcIntensityValue (float calculatedModulationValue) const noexcept
 
void applyModulationValue (float calculatedModulationValue, float &destinationValue) const noexcept
 
void setIntensity (float newIntensity) noexcept
 
void setIntensityFromSlider (float sliderValue) noexcept
 
virtual float getIntensity () const noexcept
 
float getDisplayIntensity () const noexcept
 

Protected Member Functions

virtual float calculateVoiceStartValue (const HiseEvent &m)=0
 
- 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
 

Additional Inherited Members

- Public Types inherited from Processor
enum  SpecialParameters
 
enum  InternalChains
 
- Public Types inherited from Modulation
enum  Mode { GainMode = 0, PitchMode }
 

Detailed Description

A Modulator that calculates its value only at the start of a voice.

If a midi note on comes in, it calculates a value and temporarily saves the value until startNote() is called. The value is then stored using the supplied voice index and can be retrieved using getVoiceStartValue().

Member Function Documentation

virtual float calculateVoiceStartValue ( const HiseEvent m)
protectedpure virtual

Overwrite this method to calculate the voice start value.

Implemented in KeyModulator, ArrayModulator, ConstantModulator, and RandomModulator.

virtual Processor* getChildProcessor ( int  )
inlinefinaloverridevirtual

A VoiceStartModulator has no child processors.

Implements Processor.

virtual float getVoiceStartValue ( int  voiceIndex) const
inlinevirtualnoexcept

Returns the previously calculated voice start value.

virtual void handleHiseEvent ( const HiseEvent m)
inlineoverridevirtual

If a note on is received, the voice start value is calculated and stored temporarily until startNote() is called.

Implements Modulator.

virtual void startVoice ( int  voiceIndex)
inlineoverridevirtual

When the startNote function is called, a previously calculated value (by the handleMidiMessage function) is stored using the supplied voice index.

Implements VoiceModulation.

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