OpenDrumPerc

interface OpenDrumPerc extends Instrument { uuid: string label: string enabled: boolean minimized: boolean audioUnit: InstrumentAudioUnit icon: string key: 'OpenDrumPerc' tune: number ratio: number index: number bite: number pitch: number sweep: number decay: number curve: number noise: number drive: number volume: number velocity: number play: 0 | 1 | 2 panning: number remove(): void }

openDrum Perc: zaps, lasers, blips and metallic hits from a sine pair with falling FM depth and pitch. Key 60 plays at Tune.

Hierarchy


Properties

uuid: string

readonly

Inherited from uuid

Unique id

label: string

Inherited from label

Custom label

enabled: boolean

Inherited from enabled

Enable or bypass the device

minimized: boolean

Inherited from minimized

Collapse the device editor in the studio

audioUnit: InstrumentAudioUnit

readonly

Inherited from audioUnit

The audio unit this instrument belongs to

icon: string

Inherited from icon

Icon name (see IconSymbol)

key: 'OpenDrumPerc'

readonly

Overrides key

Always "OpenDrumPerc"

tune: number

Tune in Hz (20 to 8000)

ratio: number

Ratio (0.25 to 16)

index: number

Index (0.0 to 1.0)

bite: number

Bite in seconds (0.001 to 2)

pitch: number

Pitch in semitones (-48 to 48)

sweep: number

Sweep in seconds (0.0005 to 2)

decay: number

Decay in seconds (0.005 to 4)

curve: number

Curve (-1.0 to 1.0)

noise: number

Noise (0.0 to 1.0)

drive: number

Drive in dB (0 to 36)

volume: number

Volume in dB (-36 to 6)

velocity: number

Velocity (0.0 to 1.0)

play: 0 | 1 | 2

Mode (0-2): Mono, Poly, Gate

panning: number

Pan (-1.0 to 1.0, default 0.0)

Methods

remove(): void

Inherited from remove

Removes the whole audio unit. Use InstrumentAudioUnit.setInstrument to swap the instrument. An instrument inside an InstrumentCompositeLayer removes that layer instead

Returns

  • void