I know I attempted a Goertzel-based pitch detector once, where I looped over frequencies and picked the one with the largest magnitude. I picked 25Hz and 4200Hz as my limits (from a piano).