Skip to content

end of setValueCurveAtTime range should be exclusive for cancelScheduledValues() #2643

@karlt

Description

@karlt
		For a {{AudioParam/setValueCurveAtTime()}}, let \(T_0\) and \(T_D\) be the corresponding 
		{{AudioParam/setValueCurveAtTime()/startTime!!argument}} and {{AudioParam/setValueCurveAtTime()/duration!!argument}}, respectively of this event.
		Then if {{AudioParam/cancelScheduledValues()/cancelTime!!argument}}
		is in the range \([T_0, T_0 + T_D]\), the event is
		removed from the timeline.

in https://webaudio.github.io/web-audio-api/#dom-audioparam-cancelscheduledvalues I think was intended to clarify "Any active automations whose automation event time is less than cancelTime are also cancelled" because he said "make it explicit that if the cancel time is in the middle of the curve", and that is what he tested.

The curve automation is no longer active at T_0 + T_D.

So the range should be [T_0, T_0 + T_D).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Agenda+Should be discussed at the next WG meeting. https://speced.github.io/spec-maintenance/about/Needs DiscussionThe issue needs more discussion before it can be fixed.category: enhancementSubstantive changes that do not add new features. https://www.w3.org/policies/process/#class-3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions