barmark
This is a Lightning Jar package. See the full package page →
barmark is a Markdown-inspired notation for chord charts. It takes the bar-grid convention musicians already write in plain text ("| D | A | Bm | G |") and specifies it precisely: what an empty cell means, how far "x 2" reaches, how repeats, sections, key, meter and tempo are written. A barmark file is a markdown file (.chart.md), so it reads well anywhere markdown does.
It ships as a family of packages. barmark itself is the parser, canonical printer and Harte-label converter, with no runtime dependencies. @barmark/render renders a chart as an accessible, evenly spaced bar grid, as static HTML or as a web component, and @barmark/score adds a switch to a full engraved score. @barmark/musicxml and @barmark/midi move charts to and from notation software and sequencers. @barmark/sync lines a chart up with a recording, bar by bar, and drafts a chart from a chord detector's output. @barmark/cli brings all of it to the terminal and to CI. The full list is on the barmark package page. We extracted it from Stem Shovel's chart parser and validated its rules in our stem-bench research. The code is MIT licensed; the grammar is a v0.1 draft.
How We Use It
- Writing chord charts in plain text that software can read without guessing
- Parsing charts into bars, sections and chords for playback, alignment or analysis
- Rendering clean, accessible chord-chart grids on web pages with or without JavaScript
- Checking chord-chart files in CI, with problems reported by file and line
Content Formats & Parsing
Why this matters: Content lives longest in plain-text formats people can read and machines can parse without guessing, so it survives tools, platforms and migrations. We use and build notations, parsers and converters that keep content in readable text, parse it with documented rules, and round-trip it to rendered output and other formats without silent changes. Preferred defaults: marked for spec-tested markdown rendering; barkdown for markdown edited as a live DOM; barmark for chord charts.