@barmark/cli 0.10.1 → 0.11.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 +35 -1
- package/README.md +3 -3
- package/dist/help.js +4 -1
- package/dist/render.js +11 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,38 @@ package uses [semantic versioning](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.11.0] - 2026-11-10
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **`barmark render --columns shared|row`**: with `row` each row of the
|
|
14
|
+
grid sizes its own bars, so a busy bar widens only its own row
|
|
15
|
+
(`@barmark/render`'s `columns`). `shared` is the default; any other
|
|
16
|
+
value is a usage error, and so is `--columns` with `--score`.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **Uses** barmark 0.23.0, @barmark/render 0.19.0, @barmark/musicxml
|
|
21
|
+
0.9.0 and @barmark/midi 0.3.2 and, through it, @barmark/sync 0.4.1:
|
|
22
|
+
`check` and `format` read stacked chord spellings with a warning
|
|
23
|
+
(`format` writes the canonical form), an unreadable slot keeps its bar
|
|
24
|
+
(`check` still fails) and `transpose` moves the readable chords beside
|
|
25
|
+
it, an ending may continue onto the lines after it in `render` and
|
|
26
|
+
`export`, and `render` shows the beat a tempo counts.
|
|
27
|
+
- **Uses @barmark/score 0.5.0 (still stock Verovio in-process).**
|
|
28
|
+
`render --score` engraves with Verovio 6.4.1, unchanged; score's
|
|
29
|
+
`@barmark/engraver` opt-in is for pages, not the CLI.
|
|
30
|
+
- **`barmark render --help`** says `--rehearsal-letters` adds no letters
|
|
31
|
+
to a chart that marks its own (`@A`), as `@barmark/render` 0.19.0 does.
|
|
32
|
+
|
|
33
|
+
## [0.10.2] - 2026-11-10
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- **Uses** @barmark/sync 0.4.0 and @barmark/midi 0.3.1. The sync release
|
|
38
|
+
writes a pickup in 6/8, 9/8 or 12/8 in eighths (`[k/8]`) and adds
|
|
39
|
+
`rehashTiming`; nothing else changes.
|
|
40
|
+
|
|
9
41
|
## [0.10.1] - 2026-11-10
|
|
10
42
|
|
|
11
43
|
### Changed
|
|
@@ -324,7 +356,9 @@ The first release of the `barmark` command. Uses `barmark` 0.8.0 and
|
|
|
324
356
|
- **The `barmark` command:** `check`, `format`, `render` and `transpose`
|
|
325
357
|
for `.chart.md` files, on npm and as standalone binaries.
|
|
326
358
|
|
|
327
|
-
[Unreleased]: https://github.com/kevinpeckham/barmark/compare/cli-v0.
|
|
359
|
+
[Unreleased]: https://github.com/kevinpeckham/barmark/compare/cli-v0.11.0...HEAD
|
|
360
|
+
[0.11.0]: https://github.com/kevinpeckham/barmark/compare/cli-v0.10.2...cli-v0.11.0
|
|
361
|
+
[0.10.2]: https://github.com/kevinpeckham/barmark/compare/cli-v0.10.1...cli-v0.10.2
|
|
328
362
|
[0.10.1]: https://github.com/kevinpeckham/barmark/compare/cli-v0.10.0...cli-v0.10.1
|
|
329
363
|
[0.10.0]: https://github.com/kevinpeckham/barmark/compare/cli-v0.9.0...cli-v0.10.0
|
|
330
364
|
[0.9.0]: https://github.com/kevinpeckham/barmark/compare/cli-v0.8.0...cli-v0.9.0
|
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ barmark transpose song.chart.md --to E # or --semitones -2
|
|
|
51
51
|
`check --format json` prints the diagnostics for other tools. `render`
|
|
52
52
|
takes the renderer's options as flags: `--theme auto|light|dark`,
|
|
53
53
|
`--numerals nashville|roman`, `--no-bar-numbers`, `--rehearsal-letters`,
|
|
54
|
-
`--no-wrap`, `--diagnostics`, `--part <label>` to draw one part, and `--font-url <url>` to link the font
|
|
54
|
+
`--no-wrap`, `--columns shared|row`, `--diagnostics`, `--part <label>` to draw one part, and `--font-url <url>` to link the font
|
|
55
55
|
instead of embedding it. `barmark <command> --help` lists each command's
|
|
56
56
|
flags; `barmark --version` prints the versions of the CLI, its
|
|
57
57
|
libraries and Verovio.
|
|
@@ -66,8 +66,8 @@ it does the grid, `--part <label>` engraves that part alone, and
|
|
|
66
66
|
900, a comfortable reading width: the page scales the score to fit the
|
|
67
67
|
window or the paper, so the width decides how many bars go on a line,
|
|
68
68
|
not how big the page is). The grid's own flags (`--numerals`,
|
|
69
|
-
`--no-bar-numbers`, `--rehearsal-letters`, `--no-wrap`, `--
|
|
70
|
-
`--font-url`) are usage errors with `--score`, and `--width` is one
|
|
69
|
+
`--no-bar-numbers`, `--rehearsal-letters`, `--no-wrap`, `--columns`,
|
|
70
|
+
`--diagnostics`, `--font-url`) are usage errors with `--score`, and `--width` is one
|
|
71
71
|
without it. A chart that won't engrave (one with errors, or no bars)
|
|
72
72
|
writes nothing: the reason goes to stderr as `song.chart.md: Line 5:
|
|
73
73
|
message`, and the exit code is 1. The score's text is set in Verovio's own
|
package/dist/help.js
CHANGED
|
@@ -67,8 +67,11 @@ The grid only:
|
|
|
67
67
|
--numerals nashville|roman
|
|
68
68
|
Show chords as degrees of the key
|
|
69
69
|
--no-bar-numbers Hide bar numbers
|
|
70
|
-
--rehearsal-letters Letter each section A, B, C…
|
|
70
|
+
--rehearsal-letters Letter each section A, B, C… (none when the chart marks its own)
|
|
71
71
|
--no-wrap Keep each row on one line
|
|
72
|
+
--columns shared|row row: each row sizes its own bars, so a busy bar widens
|
|
73
|
+
only its own row (default shared: bar lines line up
|
|
74
|
+
down each section)
|
|
72
75
|
--diagnostics List the chart's problems below it
|
|
73
76
|
--font-url <url> Link the font instead of embedding it
|
|
74
77
|
`,
|
package/dist/render.js
CHANGED
|
@@ -12,6 +12,7 @@ import { onlyChart, writeOutput } from "./output.js";
|
|
|
12
12
|
import { DEFAULT_WIDTH, MAX_WIDTH, MIN_WIDTH, scoreBody } from "./score.js";
|
|
13
13
|
const THEMES = ["auto", "light", "dark"];
|
|
14
14
|
const NUMERALS = ["nashville", "roman"];
|
|
15
|
+
const COLUMNS = ["shared", "row"];
|
|
15
16
|
const escapeHtml = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
16
17
|
function htmlDocument(title, body) {
|
|
17
18
|
return `<!doctype html>
|
|
@@ -34,18 +35,20 @@ const FLAGS = {
|
|
|
34
35
|
"no-bar-numbers": { type: "boolean", default: false },
|
|
35
36
|
"rehearsal-letters": { type: "boolean", default: false },
|
|
36
37
|
"no-wrap": { type: "boolean", default: false },
|
|
38
|
+
columns: { type: "string" },
|
|
37
39
|
diagnostics: { type: "boolean", default: false },
|
|
38
40
|
"font-url": { type: "string" },
|
|
39
41
|
part: { type: "string" },
|
|
40
42
|
score: { type: "boolean", default: false },
|
|
41
43
|
width: { type: "string" },
|
|
42
44
|
};
|
|
43
|
-
/** The grid's own flags: a score has no numerals, bar-number switch, letters, rows, problem list or Edwin. */
|
|
45
|
+
/** The grid's own flags: a score has no numerals, bar-number switch, letters, rows, columns, problem list or Edwin. */
|
|
44
46
|
const GRID_ONLY = [
|
|
45
47
|
"numerals",
|
|
46
48
|
"no-bar-numbers",
|
|
47
49
|
"rehearsal-letters",
|
|
48
50
|
"no-wrap",
|
|
51
|
+
"columns",
|
|
49
52
|
"diagnostics",
|
|
50
53
|
"font-url",
|
|
51
54
|
];
|
|
@@ -77,7 +80,13 @@ function gridOptions(values, theme, io) {
|
|
|
77
80
|
options.wrap = false;
|
|
78
81
|
if (values.diagnostics)
|
|
79
82
|
options.diagnostics = true;
|
|
80
|
-
return options;
|
|
83
|
+
return Object.assign(options, columnsOption(values.columns));
|
|
84
|
+
}
|
|
85
|
+
/** `--columns row` as the option; `shared`, the default, as none, so the page is the default's. */
|
|
86
|
+
function columnsOption(value) {
|
|
87
|
+
if (value === undefined)
|
|
88
|
+
return {};
|
|
89
|
+
return oneOf("columns", value, COLUMNS) === "row" ? { columns: "row" } : {};
|
|
81
90
|
}
|
|
82
91
|
/** --score's width, refusing the grid's own flags. */
|
|
83
92
|
function scoreWidth(values) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barmark/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.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.
|
|
41
|
-
"@barmark/render": "0.
|
|
42
|
-
"@barmark/musicxml": "0.
|
|
43
|
-
"@barmark/midi": "0.3.
|
|
44
|
-
"@barmark/score": "0.
|
|
40
|
+
"barmark": "0.23.0",
|
|
41
|
+
"@barmark/render": "0.19.0",
|
|
42
|
+
"@barmark/musicxml": "0.9.0",
|
|
43
|
+
"@barmark/midi": "0.3.2",
|
|
44
|
+
"@barmark/score": "0.5.0",
|
|
45
45
|
"verovio": "6.4.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|