This is a simple javascript tool to turn every textarea of the page into an ABC editor and player. It is intended to help hardcode html pages of music exercises.
The abc code can be modified at runtime but the changes are not saved in a browser session.
Usage
Add a textarea in the page with an id starting by "abc_ex_". Put the ABC code of your song or exercise inside the textarea. For example
<textarea id="abc_ex_001">YOUR ABC CODE HERE </textarea>
Result
For each textarea with an id starting with "abc_ex_":
- The music sheet is created
- The audio player is added
- The warnings are provided
- The abc code is placed into an standard collapsible (Details/Summary)
Personal application
I needed an easy way to write html pages to play offline on my mobile. It is meant to work with a simple http server. Otherwise the exercises are on my wordpress pages.
Credits
Demo