matchEvents
matchEvents(
eventsFrom,eventsTo,options?):Int32Array<ArrayBufferLike>
Defined in: packages/pleco-xa/src/sequence/matching.js:199
Match one set of events to another (nearest neighbor with optional left/right constraints).
Parameters
Section titled “Parameters”eventsFrom
Section titled “eventsFrom”number[] | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>
eventsTo
Section titled “eventsTo”number[] | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>
options?
Section titled “options?”boolean = true
allow matches left of the source event.
right?
Section titled “right?”boolean = true
allow matches right of the source event.
Returns
Section titled “Returns”Int32Array<ArrayBufferLike>
for each source event, the matched target index.