SamplerModulation

interface SamplerModulation { uuid: string source: 0 | 1 | 2 | 3 | 4 | 5 | 6 target: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 amount: number remove(): void }

One modulation of a Sampler: a source, a target and how far it reaches


Properties

uuid: string

readonly

Unique id

source: 0 | 1 | 2 | 3 | 4 | 5 | 6

Source: 0 = amp envelope, 1 = mod envelope, 2 = LFO 1, 3 = LFO 2, 4 = velocity, 5 = key, 6 = random

target: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Target: 0 = pitch, 1 = cutoff, 2 = resonance, 3 = gain, 4 = pan, 5 = sample start, 6 = loop start, 7 = LFO 1 rate, 8 = LFO 2 rate, 9 = envelope depth

amount: number

Amount (-1.0 to 1.0, default 0.0). A full amount is 48 semitones for pitch, 4 octaves for the LFO rates, the full range otherwise

Methods

remove(): void

Remove the modulation

Returns

  • void