All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | Protected Attributes | List of all members
MidiProcessor Class Referenceabstract
Inheritance diagram for MidiProcessor:
Processor SafeChangeBroadcaster RestorableObject ControlledObject MidiDelay MidiProcessorChain SampleRaster ScriptBaseMidiProcessor Transposer HardcodedScriptProcessor JavascriptMidiProcessor Arpeggiator CCSwapper DemoHardcodedScriptProcessor LegatoProcessor ReleaseTriggerScriptProcessor

Public Member Functions

 MidiProcessor (MainController *m, const String &id)
virtual ProcessorgetChildProcessor (int) override
virtual int getNumChildProcessors () const override
virtual ProcessorEditorBodycreateEditor (ProcessorEditor *parentEditor) override
virtual void processHiseEvent (HiseEvent &e)=0
void ignoreEvent ()
- Public Member Functions inherited from Processor
 Processor (MainController *m, const String &id_)
virtual ~Processor ()
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 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

Protected Attributes

int samplePos

Additional Inherited Members

- Public Types inherited from Processor
enum  SpecialParameters
enum  InternalChains
- 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 MidiProcessor processes a MidiBuffer.

It can be used to change the incoming MIDI data before it is sent to a ModulatorSynth.

Constructor & Destructor Documentation

MidiProcessor ( MainController m,
const String &  id 

Creates a new MidiProcessor. You can supply a ModulatorSynth which owns the MidiProcessor to allow the processor to change its properties.

Member Function Documentation

ProcessorEditorBody * createEditor ( ProcessorEditor *  parentEditor)

If you want an editor that is more than the header, overwrite this method and return a subclass of ProcessorEditorBody.

Implements Processor.

virtual Processor* getChildProcessor ( int  )

Normally a MidiProcessor has no child processors, but it is virtual for the MidiProcessorChain.

Implements Processor.

Reimplemented in MidiProcessorChain.

virtual int getNumChildProcessors ( ) const

Normally a MidiProcessor has no child processors, but it is virtual for the MidiProcessorChain.

Implements Processor.

Reimplemented in MidiProcessorChain.

void ignoreEvent ( )

If this method is called within processMidiMessage(), the message will be ignored.

virtual void processHiseEvent ( HiseEvent e)
pure virtual

Process the incoming event.

Implemented in MidiProcessorChain, and SampleRaster.

Member Data Documentation

int samplePos

the sample position within the processBlock.

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