@barmark/cli 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,25 @@ package uses [semantic versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.10.0] - 2026-11-09
10
+
11
+ ### Changed
12
+
13
+ - **Uses** barmark 0.22.0, @barmark/render 0.18.0, @barmark/musicxml
14
+ 0.8.0, @barmark/score 0.2.0 (with Verovio 6.4.1) and @barmark/midi 0.3.0
15
+ and, through it, @barmark/sync 0.3.0: a pickup is bar 0 everywhere
16
+ (`render`, `export`, `import`), and the libraries' fixes for very large
17
+ or crowded charts.
18
+ - **Bar numbers in `export --midi` and `import` messages follow the
19
+ chart**: a chart's pickup is bar 0 and the first full bar is bar 1, as
20
+ in the barmark grammar (2.4). A loss in the first full bar after a pickup
21
+ was reported as `bar 2`.
22
+
23
+ ### Technical
24
+
25
+ - **The README gives Verovio's copyright and source**, and how to build with
26
+ another Verovio (LGPL-3.0).
27
+
9
28
  ## [0.9.0] - 2026-11-09
10
29
 
11
30
  ### Added
@@ -297,7 +316,8 @@ The first release of the `barmark` command. Uses `barmark` 0.8.0 and
297
316
  - **The `barmark` command:** `check`, `format`, `render` and `transpose`
298
317
  for `.chart.md` files, on npm and as standalone binaries.
299
318
 
300
- [Unreleased]: https://github.com/kevinpeckham/barmark/compare/cli-v0.9.0...HEAD
319
+ [Unreleased]: https://github.com/kevinpeckham/barmark/compare/cli-v0.10.0...HEAD
320
+ [0.10.0]: https://github.com/kevinpeckham/barmark/compare/cli-v0.9.0...cli-v0.10.0
301
321
  [0.9.0]: https://github.com/kevinpeckham/barmark/compare/cli-v0.8.0...cli-v0.9.0
302
322
  [0.8.0]: https://github.com/kevinpeckham/barmark/compare/cli-v0.7.0...cli-v0.8.0
303
323
  [0.7.0]: https://github.com/kevinpeckham/barmark/compare/cli-v0.6.6...cli-v0.7.0
package/README.md CHANGED
@@ -91,7 +91,8 @@ read stdin.
91
91
  (chords voiced on piano, the tempo map, markers and lyrics); `--out` is
92
92
  required, and `--part <label>` exports one part. What MIDI can't hold is
93
93
  listed on stderr as `song.chart.md: bar 9: warning: message`, such as an
94
- open repeat (`x ...`) played once. A chart with errors is not exported.
94
+ open repeat (`x ...`) played once. Bars are numbered as the chart
95
+ numbers them: a pickup is bar 0, here and in `import`. A chart with errors is not exported.
95
96
 
96
97
  `import` reads a MIDI file (`.mid` or `.midi`) as a chart too, naming a
97
98
  chord from the notes of the tracks that carry the harmony and turning
@@ -134,6 +135,13 @@ which is LGPL-3.0-only. From npm, Verovio is an ordinary dependency
134
135
  binaries bundle it unmodified, at the version this package pins; the
135
136
  release carries
136
137
  its licence as `Verovio-LGPL-3.0.txt` and the GPL it builds on as
137
- `Verovio-GPL-3.0.txt`. The binaries are built from this repository's
138
- source with `bun scripts/compile.ts`, so they can be rebuilt with another
139
- Verovio. barmark's own code stays MIT.
138
+ `Verovio-GPL-3.0.txt`. barmark's own code stays MIT.
139
+
140
+ Verovio © Laurent Pugin and others, LGPL-3.0-only. Its source, at the
141
+ version the binaries bundle, is
142
+ [rism-digital/verovio at the matching `version-` tag](https://github.com/rism-digital/verovio/tree/version-6.4.1)
143
+ (`barmark --version` names that version). To build the binaries with
144
+ another or a modified Verovio: in a checkout of this repository, point the
145
+ `verovio` dependency of `packages/cli` and `packages/score` at it, run
146
+ `bun install`, then `bun scripts/compile.ts <target> <out>` (the targets
147
+ are listed in that script).
package/dist/export.js CHANGED
@@ -7,9 +7,14 @@ import { readCharts, STDIN } from "./inputs.js";
7
7
  import { UsageError } from "./io.js";
8
8
  import { onlyChart, writeFile, writeOutput } from "./output.js";
9
9
  import { textLine } from "./report.js";
10
- /** `file: bar N: warning: message`, as `check` prints its findings; a loss with no bar has no place. */
10
+ /**
11
+ * `file: bar N: warning: message`, as `check` prints its findings; N is the
12
+ * bar's written number (a pickup is 0), not its play position. A loss with no
13
+ * bar has no place.
14
+ */
11
15
  export function lossLine(path, loss) {
12
- return `${path}: ${loss.bar === undefined ? "" : `bar ${loss.bar}: `}warning: ${loss.message}`;
16
+ const bar = loss.written ?? loss.bar;
17
+ return `${path}: ${bar === undefined ? "" : `bar ${bar}: `}warning: ${loss.message}`;
13
18
  }
14
19
  const diagnosticLine = (path, d) => d.line ? textLine(path, d) : `${path}: ${d.message}`;
15
20
  /** The format the flags name: exactly one; --midi writes bytes, so it needs --out. */
package/dist/import.js CHANGED
@@ -24,7 +24,7 @@ export function importLine(path, d) {
24
24
  d.part === undefined ? "" : `(${d.part})`,
25
25
  ], d);
26
26
  }
27
- /** `file: bar N (track T): severity: message`, as `importLine` prints a score's. */
27
+ /** `file: bar N (track T): severity: message`; N is a written number, a pickup 0, as `importLine` prints a score's. */
28
28
  export function midiLine(path, d) {
29
29
  return line(path, [d.bar === undefined ? "" : `bar ${d.bar}`, d.track === undefined ? "" : `(track ${d.track})`], d);
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barmark/cli",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "The barmark command: check, format, render, transpose and export barmark chord charts (.chart.md) from the terminal and in CI.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,11 +37,11 @@
37
37
  "url": "https://github.com/kevinpeckham/barmark/issues"
38
38
  },
39
39
  "dependencies": {
40
- "barmark": "0.21.0",
41
- "@barmark/render": "0.17.1",
42
- "@barmark/musicxml": "0.7.2",
43
- "@barmark/midi": "0.2.0",
44
- "@barmark/score": "0.1.1",
40
+ "barmark": "0.22.0",
41
+ "@barmark/render": "0.18.0",
42
+ "@barmark/musicxml": "0.8.0",
43
+ "@barmark/midi": "0.3.0",
44
+ "@barmark/score": "0.2.0",
45
45
  "verovio": "6.4.1"
46
46
  },
47
47
  "scripts": {