MIDIEffectHost
interface MIDIEffectHost {
midiEffects: readonly AnyMIDIEffect[]
addMIDIEffect<K extends keyof MIDIEffects>(key: K, props?: DeepPartial<MIDIEffects[K]>, index?: number): MIDIEffects[K]
}Anything with a MIDI effect chain (units, Playfield slots, instrument composite layers)
Properties
midiEffects: readonly AnyMIDIEffect[]
readonly
MIDI effects ordered by index
- See:
Methods
addMIDIEffect<
K extends keyof MIDIEffects,
>(
key: K,
props?: DeepPartial<MIDIEffects[K]>,
index?: number,
): MIDIEffects[K]
Add a MIDI effect
Type Parameters
Kextendskeyof MIDIEffects
Parameters
key(K) — Effect typeprops(DeepPartial<MIDIEffects[K]>, optional) — Initial parameter valuesindex(number, optional) — Insert position (default: end of chain)
Returns
Example
CODE
synth.addMIDIEffect("Arpeggio", {rate: 9, octaves: 2})- See: