refactor
test sin1khz for c impl
draft
wip