First round of parseFloat fixes

Fixing some no-brainers and checking them in as I go. Doing parseFloat
on the parameters to calculate pitch instead of in more places within
that function.