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.

MidiProcessor.asMidiPlayer()



exists

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

MidiProcessor.exists()



exportScriptControls

Export the control values (without the script).

MidiProcessor.exportScriptControls()



exportState

Exports the state as base64 string.

MidiProcessor.exportState()



getAttribute

Returns the attribute with the given index.

MidiProcessor.getAttribute(int index)



getAttributeId

Returns the ID of the attribute with the given index.

MidiProcessor.getAttributeId(int index)



getAttributeIndex

Returns the index of the attribute with the given ID.

MidiProcessor.getAttributeIndex(String id)



getId

Returns the ID of the MIDI Processor.

MidiProcessor.getId()



getNumAttributes

Returns the number of attributes.

MidiProcessor.getNumAttributes()



isBypassed

Checks if the MidiProcessor is bypassed.

MidiProcessor.isBypassed()



restoreScriptControls

Restores the control values for scripts (without recompiling).

MidiProcessor.restoreScriptControls(String base64Controls)



restoreState

Restores the state from a base64 string.

MidiProcessor.restoreState(String base64State)



setAttribute

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

MidiProcessor.setAttribute(int index, float value)



setBypassed

Bypasses the MidiProcessor.

MidiProcessor.setBypassed(bool shouldBeBypassed)