For the complete documentation index, see llms.txt. This page is also available as Markdown.

Trace the right boundary

trace-the-right-boundary.gpc
int raw;
int transformed;
int final_value;
int adjustment;

main {
    raw = get_ival(PS5_RX);
    transformed = raw + adjustment;
    final_value = bounded_axis(transformed);

    set_val(TRACE_1, raw);
    set_val(TRACE_2, transformed);
    set_val(TRACE_3, final_value);

    set_val(PS5_RX, final_value);
}

function bounded_axis(value) {
    if(value < -100) return -100;
    if(value > 100) return 100;
    return value;
}

If raw is right and final is wrong, inspect the calculation. If final is right in trace but the console output is wrong, inspect later writers, polar/direct mixing, remaps, exclusive modes, and output protocol.

Last updated