Fixed a couple of minor oversights
Made tone pitch input logarithmic