Struct thl::dsp::sampler::LoopFadePlan#

struct LoopFadePlan#

Where a loop wrap fades, in source frames.

A loop fade blends the head into a copy reading the other side of the jump, so the jump itself is silent:

  • m_pre: over the last frames before End, the copy reads the audio just before Loop and fades in; at End the head is already reading what follows Loop (a hardware sampler’s loop crossfade).

  • m_post: after the wrap, the head starts at Loop under a copy that carries on past End and fades out (when there is no room before Loop).

At most one is non-zero; both zero means no room to fade.

Public Members

double m_point = {0.0}#

Effective (virtual) re-entry.

double m_pre = {0.0}#
double m_post = {0.0}#