Interface AudioParam

Cacophony's own audio type interfaces.

These are minimal structural interfaces covering only what Cacophony actually uses. Both the native Web Audio API and standardized-audio-context satisfy these structurally, so users can pass either.

interface AudioParam {
    value: number;
    cancelScheduledValues(cancelTime): AudioParam;
    exponentialRampToValueAtTime(value, endTime): AudioParam;
    linearRampToValueAtTime(value, endTime): AudioParam;
    setValueAtTime(value, startTime): AudioParam;
}

Properties

value: number

Methods