VOICE LEADINGS AS GENERALIZED KEY SIGNATURES A rational reconstruction of Western musical notation