He was a gifted Canadian clarinetist who had the chance to study under a renowned professor in Los Angeles — all expenses paid. But his girlfriend didn’t want him to leave Canada.

So she logged onto his email account, intercepted his acceptance and turned down the offer, court records show. Then she sent him a fake rejection from the prestigious music program, according to the lawsuit he filed in Ontario.

Now, a judge has ordered her to pay her ex 375,000 Canadian dollars in damages and legal fees.

“This was despicable conduct,” the judge, D.L. Corbett, wrote in a judgment issued this week.

The clarinetist, Eric Abramovitz, had been dating Jennifer Lee, a fellow music student, for only a few months when he applied to the Colburn Conservatory of Music in Los Angeles in 2013, court records show.