The music plays on for Robert Sillerman.

Sillerman’s SFX Entertainment electronic dance music company ended a rollercoaster week on a high note after the near-broke company announced $20 million in new financing.

The deal, announced before the markets opened on Friday, sent SFX shares soaring 57 percent, to 12.4 cents, amid a broad and deep market sell-off.

SFX didn’t identify the new funding source but promised to do so in a regulatory filing next week.

Speculation in the entertainment industry on Friday was that the company savior is a group that has previously worked with Sillerman.

The 67-year-old executive, who took SFX public in October 2013 at $13 per share, has alienated investors with a mercurial management style coupled with the stock’s dramatic downturn.

Sillerman got his board to agree to a take-private transaction at $5.25 per share in May — and to a second one at $3.25 in October — but failed to deliver on either one.

SFX’s late-November retention of debt advisory firm Moelis & Co. put investors on bankruptcy watch.

That watch intensified on Wednesday after SFX acknowledged missing a $3 million interest payment on a $10.8 million note.

The missed payment constituted a “default,” which on Thursday sent the stock to an all-time low of 7 cents per share.