angular controller functions for calculating intervals, chord tones, etc