Initial source code, takes a finger position and turns it into a
frequency value