Takes user input and calculates chords