Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InstrumentSpec

Specification for a sampled instrument. Samples must exist for all pitches between minPitch and maxPitch at all velocities in velocities (unless velocities is undefined, in which case only a single sample exists for each pitch). Each sample consists of a note sustained for durationSeconds then released, ending after releaseSeconds additional seconds.

param

Name of the instrument.

param

The minimum MIDI pitch sampled.

param

The maximum MIDI pitch sampled.

param

Length of each sample in seconds, not including the release.

param

Length of the release for each sample in seconds.

param

If true, the sample is considered percussive and will always be played in its entirety.

param

(Optional) The set of velocities sampled.

Hierarchy

  • InstrumentSpec

Index

Properties

durationSeconds

durationSeconds: number

maxPitch

maxPitch: number

minPitch

minPitch: number

name

name: string

percussive

percussive: boolean

releaseSeconds

releaseSeconds: number

Optional velocities

velocities: number[]

Generated using TypeDoc