Best way to create an ‘online virtual piano’ webpage?

I want to create a basic online midi piano webpage. I know Python very well but not JavaScript yet. What is the best way to do this? Is Django or Flask relevant here? Essentially I just want a super basic midi piano on a webpage and am just looking for a point in the right direction, thanks.

Context: I have made a PyQT5 Desktop App but have now decided I want it as a webpage so I need to completely remake it. I’ve never done any web development. I need Midi and not audio files.