HISE Docs

MidiProcessor

Get a reference to a Midi Processor with Synth.getMidiProcessor() to call its functions.

const var Arpeggiator1 = Synth.getMidiProcessor("Arpeggiator1");


Class methods

asMidiPlayer

Returns a reference of type ScriptedMidiPlayer that can be used to control the playback. Edit on GitHub

MidiProcessor.asMidiPlayer()



exists

Checks if the Object exists and prints a error message on the console if not. Edit on GitHub

MidiProcessor.exists()



exportScriptControls

Export the control values (without the script). Edit on GitHub

MidiProcessor.exportScriptControls()



exportState

Exports the state as base64 string. Edit on GitHub

MidiProcessor.exportState()



getAttribute

Returns the attribute with the given index. Edit on GitHub

MidiProcessor.getAttribute(int index)



getAttributeId

Returns the ID of the attribute with the given index. Edit on GitHub

MidiProcessor.getAttributeId(int index)



getAttributeIndex

Returns the index of the attribute with the given ID. Edit on GitHub

MidiProcessor.getAttributeIndex(String id)



getId

Returns the ID of the MIDI Processor. Edit on GitHub

MidiProcessor.getId()



getNumAttributes

Returns the number of attributes. Edit on GitHub

MidiProcessor.getNumAttributes()



isBypassed

Checks if the MidiProcessor is bypassed. Edit on GitHub

MidiProcessor.isBypassed()



restoreScriptControls

Restores the control values for scripts (without recompiling). Edit on GitHub

MidiProcessor.restoreScriptControls(String base64Controls)



restoreState

Restores the state from a base64 string. Edit on GitHub

MidiProcessor.restoreState(String base64State)



setAttribute

Sets the attribute of the MidiProcessor. If it is a script, then the index of the component is used. Edit on GitHub

MidiProcessor.setAttribute(int index, float value)



setBypassed

Bypasses the MidiProcessor. Edit on GitHub

MidiProcessor.setBypassed(bool shouldBeBypassed)