Generalized Musical Intervals and Transformations