PlayfieldPad

interface PlayfieldPad extends MIDIEffectHost, AudioEffectHost { midiEffects: readonly AnyMIDIEffect[] audioEffects: readonly AnyAudioEffect[] uuid: string playfield: Playfield instrument: Vaporisateur | Sampler | Soundfont | MIDIOutput | Neon | Tubular | Surgeon | OpenDrumKick | OpenDrumSnare | OpenDrumClap | OpenDrumTom | OpenDrumRim | OpenDrumHat | OpenDrumShaker | OpenDrumCymbal | OpenDrumBell | OpenDrumPerc | Cubed | Guitar | Apparat note: number key: number gain: number pan: number mute: boolean solo: boolean exclude: boolean minimized: boolean addMIDIEffect<K extends keyof MIDIEffects>(key: K, props?: DeepPartial<MIDIEffects[K]>, index?: number): MIDIEffects[K] addAudioEffect<K extends keyof AudioEffects>(key: K, props?: DeepPartial<AudioEffects[K]>, index?: number): AudioEffects[K] remove(): void }

One pad of the Playfield playing an instrument, with its own MIDI and audio effect chains and its own strip

Hierarchy


Properties

midiEffects: readonly AnyMIDIEffect[]

readonly

Inherited from midiEffects

MIDI effects ordered by index

audioEffects: readonly AnyAudioEffect[]

readonly

Inherited from audioEffects

Audio effects ordered by index

uuid: string

readonly

Unique id

playfield: Playfield

readonly

The Playfield this pad belongs to

instrument: Vaporisateur | Sampler | Soundfont | MIDIOutput | Neon | Tubular | Surgeon | OpenDrumKick | OpenDrumSnare | OpenDrumClap | OpenDrumTom | OpenDrumRim | OpenDrumHat | OpenDrumShaker | OpenDrumCymbal | OpenDrumBell | OpenDrumPerc | Cubed | Guitar | Apparat

readonly

The instrument this pad plays

note: number

MIDI note triggering this pad (0 to 127)

key: number

The note the pad's instrument plays when triggered (0 to 127, default 60)

gain: number

Pad gain in dB (default 0)

pan: number

Pan (-1.0 to 1.0, default 0.0)

mute: boolean

Mute the pad

solo: boolean

Solo the pad

exclude: boolean

Exclusive: a new hit stops any other exclusive pad (hi-hat choke)

minimized: boolean

Collapse the pad editor

Methods

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

Inherited from addMIDIEffect

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})

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

Inherited from addAudioEffect

Add an audio effect

Type Parameters

Parameters

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

Returns

Example

CODE
synth.addAudioEffect("Delay", {delay: 13, feedback: 0.4, wet: -9})
const composite = synth.addAudioEffect("Composite")
composite.addEntry({label: "Crushed"}).addAudioEffect("Crusher", {bits: 8})

remove(): void

Remove the pad with its instrument and effects

Returns

  • void