Skip to content

Unclear behavior of setTargetAtTime when there is an event following setTargetAtTime #652

@rtoy

Description

@rtoy

In http://webaudio.github.io/web-audio-api/#widl-AudioParam-setTargetAtTime-void-float-target-double-startTime-float-timeConstant, there is the paragraph

During the time interval: T0≤t<T1, where T0 is the startTime parameter and T1 represents the time of the event following this event

While this behavior would actually be nice, it is inconsistent with how linear and exponential ramps are defined. If such an event were scheduled at time T1, then the ramp would effectively replace the setTargetAtTime event at time T0. This is the behavior on Chrome and Safari.

The spec should probably be changed to say the time interval is T0 <= t.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs EditsDecision has been made, the issue can be fixed. https://speced.github.io/spec-maintenance/about/

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions