I have been trying to figure out whether or not it is possible to use abcjs's Synthesized Audio functionality, so that I can add audio player controls to play rendered abcjs music with local sound files. The idea is to have audio control buttons (play/pause, stop, next, previous, etc.) and possibly a progress bar, which are all rendered via HTML in a Joplin plugin webpanel. I would then use a abcjs script like this to add audio functionality to the buttons and webpanel. I haven't had anything work yet, but maybe what I am trying to achieve is not possible. Would anyone know more about this?
Yes, I believe so. Here’s a very rudimentary implementation in a web-page where ABCJS is a factory function found in rosen’s abcjs-basic.js Nearly the entire editor and audio player is instantiated thus:
It seems like that is straightforward enough to implement in Joplin’s abc plugin, but I’m not familiar enough with Joplin’s plugin architecture to make a credible stab at it. Sure would be nice to see though.
EDIT: I’m being naive I suppose. I had forgotten that before I could write that rudimentary implementation, I had to install several node modules and webpackrequires them at the top of abcjs-basic.js I’ve no idea if Joplin can make use of that sort of architecture.