// subtract the two samples and pull it through a filter. we assume
// the sines are normalized for now (and that there's no dc skew)
double offset = filter(intp_sample - refs);
// subtract the two samples and pull it through a filter. we assume
// the sines are normalized for now (and that there's no dc skew)
double offset = filter(intp_sample - refs);