A biological rationale for musical consonance