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

Methods

addMIDIEffect< K extends keyof MIDIEffects, >( key: K, props?: DeepPartial<MIDIEffects[K]>, index?: number, ): MIDIEffects[K]

Add a MIDI effect

Type Parameters

Parameters

  • key (K) — Effect type
  • props (DeepPartial<MIDIEffects[K]>, optional) — Initial parameter values
  • index (number, optional) — Insert position (default: end of chain)

Returns

Example

CODE
synth.addMIDIEffect("Arpeggio", {rate: 9, octaves: 2})