Table of Contents

Interface IPositionTransform

Namespace
NAudio.Sequencing
Assembly
NAudio.Core.dll

Transforms a nominal event tick into an effective tick. Used to layer swing / quantize / humanize on top of a stored event timeline without rewriting the events. The transform must declare a tight bound on the magnitude of any shift it can apply, so the consumer can over-scan its timeline query (see the architecture doc for why this is essential).

public interface IPositionTransform

Properties

MaxShiftTicks

An upper bound on |effective − nominal| over all inputs. Consumers use this to expand the nominal range they query so no event is silently dropped by the transform pushing it across a buffer boundary.

long MaxShiftTicks { get; }

Property Value

long

Methods

Transform(long)

The effective tick for an event whose stored (nominal) tick is nominalTick.

long Transform(long nominalTick)

Parameters

nominalTick long

Returns

long