Wave patterns in music theory