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[]
Inherited from midiEffects
MIDI effects ordered by index
audioEffects: readonly AnyAudioEffect[]
Inherited from audioEffects
Audio effects ordered by index
uuid: string
Unique id
playfield: Playfield
The Playfield this pad belongs to
- See:
instrument: Vaporisateur | Sampler | Soundfont | MIDIOutput | Neon | Tubular | Surgeon | OpenDrumKick | OpenDrumSnare | OpenDrumClap | OpenDrumTom | OpenDrumRim | OpenDrumHat | OpenDrumShaker | OpenDrumCymbal | OpenDrumBell | OpenDrumPerc | Cubed | Guitar | Apparat
The instrument this pad plays
- See:
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
Kextendskeyof MIDIEffects
Parameters
key(K) — Effect typeprops(DeepPartial<MIDIEffects[K]>, optional) — Initial parameter valuesindex(number, optional) — Insert position (default: end of chain)
Returns
Example
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
Kextendskeyof AudioEffects
Parameters
key(K) — Effect typeprops(DeepPartial<AudioEffects[K]>, optional) — Initial parameter valuesindex(number, optional) — Insert position (default: end of chain)
Returns
Example
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