Packages
Each package is on npm. The version beside each is the one this site installs; its page has an example and its README.
Library
barmark0.29.1Reads a chart (bars in play order, with problems by line), prints it in standard form, transposes it, converts Harte labels.
When to use it: Anything that reads or writes charts. The others build on it.
Embed a chart
@barmark/render0.26.0Draws the bar grid, as HTML from renderChart or as the <barmark-chart> element.
When to use it: Showing a chart on a page. Light, with no engraver.
@barmark/score0.12.0<barmark-score>: the grid with a Grid / Score switch, the score engraved by Verovio; renderScoreHtml for servers.
When to use it: Readers want sheet music too, and Verovio's download on demand is acceptable.
@barmark/engraver0.1.2A smaller build of the same Verovio: the score element's own copy, with stock Verovio behind it.
When to use it: Comes with the score, which loads it by default. Name it only to load it from a CDN.
@barmark/fretboard0.1.5Finds guitar chord shapes for Barmark chords, from a table and a shape finder, and the exact frets for notes you wrote. It draws nothing itself.
When to use it: Drawing chord boxes your own way, or fret numbers as text. The renderer already uses it for chord-diagrams.
Command line
@barmark/cli0.22.0A command that checks, formats, renders, transposes, exports and imports charts, and pulls out a part.
When to use it: Working in a terminal or CI, with no code. Also a standalone binary.
Import and export
@barmark/musicxml0.11.0Exports a chart as MusicXML 4.0 and imports a score (.musicxml or .mxl) as a chart.
When to use it: Moving charts to and from MuseScore, Dorico, Sibelius or Finale.
@barmark/midi0.4.4Exports a chart's play order as a MIDI file, imports a MIDI file as a chart, and gives the timed notes.
When to use it: Hearing a chart in a DAW or a practice player, or building a player of your own.
@barmark/lyricsheet0.1.5Writes a chart as a ChordPro lyric sheet: chords over the words, with the title, key, time and tempo, and guitar chord diagrams if you ask. It says what ChordPro could not carry.
When to use it: A singer's sheet for any app that reads ChordPro, to show, print or transpose.
Charts from recordings
@barmark/sync0.4.6Writes a chart and its timing map from a chord detector's bars and chords; reads timing maps.
When to use it: An audio tool that already knows where the bars and chords are.
@barmark/listen0.2.6Finds the bars in a recording, or reads them from a beat tracker's beats, and writes the chart; or lines a chart up with a recording. Early (0.2).
When to use it: An audio tool starting from the audio, which can declare the tempo and meter or has a beat tracker's reading.