Table of Contents

Enum SamplerCrossfadeCurve

Namespace
NAudio.Sampler
Assembly
NAudio.Sampler.dll

The curve a key/velocity crossfade uses to turn a fade position (0..1) into a gain (SFZ xf_keycurve/xf_velcurve).

public enum SamplerCrossfadeCurve

Fields

Linear = 0

Linear: gain = position (SFZ gain).

Power = 1

Equal-power: gain = sqrt(position), so two crossfading layers sum to constant power (SFZ power).