Gestalt Principles Applied to Music