paulrosen / abcjs

javascript for rendering abc music notation
Other
1.94k stars 285 forks source link

How to click lyrics and update them #997

Open lihongyao opened 8 months ago

lihongyao commented 8 months ago

I anticipate that upon clicking a note, the note can be updated via the piano keyboard. Simultaneously, when selecting the lyrics, a pop-up box should also allow for updating of the current lyrics. What actions should be implemented within the clickListener event function?

paulrosen commented 7 months ago

There isn't a visual editor but a number of people have done some work on that. I'm not sure where to point you for that, though.

If you look at this demo: https://paulrosen.github.io/abcjs/examples/dragging.html you'll see the general idea that I would do. You have the start and end characters for the clicked note and you can replace that substring with the new note and re-render.