Interface AudioParam
interface AudioParam {
automationRate: AutomationRate;
defaultValue: number;
maxValue: number;
minValue: number;
value: number;
cancelAndHoldAtTime(cancelTime: number): AudioParam;
cancelScheduledValues(cancelTime: number): AudioParam;
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
setTargetAtTime(
target: number,
startTime: number,
timeConstant: number,
): AudioParam;
setValueAtTime(value: number, startTime: number): AudioParam;
setValueCurveAtTime(
values: number[] | Float32Array,
startTime: number,
duration: number,
): AudioParam;
setValueCurveAtTime(
values: Iterable<number>,
startTime: number,
duration: number,
): AudioParam;
}
automationRate: AutomationRate;
defaultValue: number;
maxValue: number;
minValue: number;
value: number;
cancelAndHoldAtTime(cancelTime: number): AudioParam;
cancelScheduledValues(cancelTime: number): AudioParam;
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
setTargetAtTime(
target: number,
startTime: number,
timeConstant: number,
): AudioParam;
setValueAtTime(value: number, startTime: number): AudioParam;
setValueCurveAtTime(
values: number[] | Float32Array,
startTime: number,
duration: number,
): AudioParam;
setValueCurveAtTime(
values: Iterable<number>,
startTime: number,
duration: number,
): AudioParam;
}
Properties
automationRate
Readonly
defaultValue
defaultValue: number
Readonly
maxValue
maxValue: number
Readonly
minValue
minValue: number
value
value: number
Methods
cancelAndHoldAtTime
- cancelAndHoldAtTime(cancelTime: number): AudioParam
Parameters
- cancelTime: number
Returns AudioParam
cancelScheduledValues
- cancelScheduledValues(cancelTime: number): AudioParam
Parameters
- cancelTime: number
Returns AudioParam
exponentialRampToValueAtTime
- exponentialRampToValueAtTime(value: number, endTime: number): AudioParam
Parameters
- value: number
- endTime: number
Returns AudioParam
linearRampToValueAtTime
- linearRampToValueAtTime(value: number, endTime: number): AudioParam
Parameters
- value: number
- endTime: number
Returns AudioParam
setTargetAtTime
- setTargetAtTime(
target: number,
startTime: number,
timeConstant: number,
): AudioParam Parameters
- target: number
- startTime: number
- timeConstant: number
Returns AudioParam
setValueAtTime
- setValueAtTime(value: number, startTime: number): AudioParam
Parameters
- value: number
- startTime: number
Returns AudioParam
setValueCurveAtTime
- setValueCurveAtTime(
values: number[] | Float32Array,
startTime: number,
duration: number,
): AudioParam Parameters
- values: number[] | Float32Array
- startTime: number
- duration: number
Returns AudioParam
- setValueCurveAtTime(
values: Iterable<number>,
startTime: number,
duration: number,
): AudioParam Parameters
- values: Iterable<number>
- startTime: number
- duration: number
Returns AudioParam
MDN Reference