Interface SamplerOptions

interface SamplerOptions {
    attack: Unit.Time;
    baseUrl: string;
    context: BaseContext;
    curve: OneShotSourceCurve;
    onerror: ((error) => void);
    onload: (() => void);
    release: Unit.Time;
    urls: SamplesMap;
    volume: number;
}

Hierarchy

  • InstrumentOptions
    • SamplerOptions

Properties

attack: Unit.Time
baseUrl: string
context: BaseContext
curve: OneShotSourceCurve
onerror: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: Error

      Returns void

onload: (() => void)

Type declaration

    • (): void
    • Returns void

release: Unit.Time
urls: SamplesMap
volume: number