To use it, install music21 with
npm install music21j and then put in your HTML:
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/music21j/releases/music21j.css">
<script src="https://cdn.jsdelivr.net/npm/music21j/releases/music21.debug.js"></script>
<script>
music21.tinyNotation.renderNotationDivs();
</script>
The second script is only necessary if the divs already exist
Any div/etc. with
class=""music21 tinyNotation" or
"music21 tinyNotation noPlayback" will render as notation
<div class="music21 tinyNotation noPlayback">3/4 D8. F#16 E8 F Gn A C#2. D2.</div> (clicking does nothing)
3/4 D8. F#16
E8 F Gn A c#2. d2.
Here is a multipart tinyNotation with the partBreak code:
<div class="music21 tinyNotation">g2 f2 partBreak C4 D8 E8 F2</div>
g2 f2 partBreak C4 D8 E8 F2