7. Top-Level Computation
A single sample of audio is computed with gestvm_tick.
It takes expects a conductor, a phasor signal used
as clock signal, as input.
<<funcdefs>>=
SKFLT gestvm_tick(gestvm *gvm, SKFLT cnd);The the pipeline is broken up into functions that are explained in the later sections. The order includes: skew, rephasor, VM, and interpolator.
<<funcs>>=
SKFLT gestvm_tick(gestvm *gvm, SKFLT cnd)
{
    SKFLT out;
    out = 0.0;
    /* Skew! */
    cnd = skewer_tick(gvm, cnd);
    /* Main Rephasor! */
    cnd = rephasor_tick(gvm, cnd);
    /* VM process */
    vm_tick(gvm, cnd);
    /* Interpolate */
    out = interpolate(gvm, cnd);
    return out;
}prev | home | next