enhance wave::copyChunk with variable loop point support