egatari 0.6.10 → 0.6.11-rc.1
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/README.ja.md +22 -22
- package/README.md +1 -1
- package/bin/egatari.mjs +1 -1
- package/components.lock.json +288 -144
- package/components2.lock.json +657 -1
- package/kit/build.mjs +3 -2
- package/kit/check-messages.mjs +46 -12
- package/kit/check.mjs +54 -19
- package/kit/core/article-messages.mjs +5 -4
- package/kit/core/attachments.mjs +2 -1
- package/kit/core/build-core.mjs +2 -1
- package/kit/core/check-parity.mjs +3 -1
- package/kit/core/check-result.mjs +2 -1
- package/kit/core/check-rules.mjs +132 -0
- package/kit/core/colab-core.mjs +2 -2
- package/kit/core/geometry-check.mjs +302 -0
- package/kit/core/layout-scan.mjs +9 -2
- package/kit/core/live-results.mjs +1 -1
- package/kit/core/llm-fix.mjs +3 -2
- package/kit/core/llm-outline.mjs +3 -2
- package/kit/core/llm-pack-data.mjs +114 -114
- package/kit/core/narration-lint.mjs +37 -0
- package/kit/core/new-deck-pack.mjs +2 -1
- package/kit/core/new-deck.mjs +1 -1
- package/kit/core/plural.mjs +5 -0
- package/kit/core/portable.mjs +6 -5
- package/kit/core/sample-layout.mjs +14 -0
- package/kit/core/text-band.mjs +37 -0
- package/kit/core/tier-a.mjs +2 -1
- package/kit/instruction-version.json +1 -1
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/kit/render-compare.mjs +5 -4
- package/kit/tools.js +2 -2
- package/package.json +3 -2
- package/server/editor-ui.js +2 -2
- package/vendor/components/CATALOG.md +12 -12
- package/vendor/components/sha256/00d9072cb279a1a68166787f53395c747072388971d916c082a106844dbf888f/index.js +315 -0
- package/vendor/components/sha256/03e20fb6803de0d94e93de7c01d7d00cede57b0b2604b449daa4cb156367500d/README.en.md +23 -0
- package/vendor/components/sha256/03e20fb6803de0d94e93de7c01d7d00cede57b0b2604b449daa4cb156367500d/index.js +289 -0
- package/vendor/components/sha256/0e5458deb63e32aefdbf8722fa156fd44cd90d5d8f9d6a25a636007b4b599450/README.en.md +40 -0
- package/vendor/components/sha256/0e5458deb63e32aefdbf8722fa156fd44cd90d5d8f9d6a25a636007b4b599450/index.js +341 -0
- package/vendor/components/sha256/1073e03374f0fe65d2691f160bfd8c092986c168d0bd6a6094ebd444d4b89c27/index.js +592 -0
- package/vendor/components/sha256/12b1b32eb3a75e9f11eff407b7876473674ae996d7ce276e2ab6ffaf41ad4376/README.en.md +48 -0
- package/vendor/components/sha256/12b1b32eb3a75e9f11eff407b7876473674ae996d7ce276e2ab6ffaf41ad4376/index.js +384 -0
- package/vendor/components/sha256/147987bd84722249dab609293d4fafa93f0a2aac25b8517fda1710840b575d00/index.js +341 -0
- package/vendor/components/sha256/170e9072285213a2b4e79d7c2e4ddb882d1501e60b5da63c59b1679643163005/README.en.md +23 -0
- package/vendor/components/sha256/170e9072285213a2b4e79d7c2e4ddb882d1501e60b5da63c59b1679643163005/index.js +120 -0
- package/vendor/components/sha256/17da8ef5ce58354df54ebb52c8a9b0726e69d06ac28cc8e78f807ec338002782/README.en.md +32 -0
- package/vendor/components/sha256/17da8ef5ce58354df54ebb52c8a9b0726e69d06ac28cc8e78f807ec338002782/index.js +222 -0
- package/vendor/components/sha256/1b30dfd9b366ff07556024eb8ce75cca2eac8001fa392eed4e1232047001ec74/index.js +404 -0
- package/vendor/components/sha256/37846655693f8dd869d11d3d4cddb43be57f848037d0e49564b2250401448ab5/README.en.md +66 -0
- package/vendor/components/sha256/37846655693f8dd869d11d3d4cddb43be57f848037d0e49564b2250401448ab5/index.js +920 -0
- package/vendor/components/sha256/3fdd15756f779a16362dd854f143ca4343154059882d88d44adf64745c7876e3/README.en.md +50 -0
- package/vendor/components/sha256/3fdd15756f779a16362dd854f143ca4343154059882d88d44adf64745c7876e3/index.js +171 -0
- package/vendor/components/sha256/435c3f8e0c0abc123866e57ae2c7f3409e19d14a2eb67b1fde84c4da5d95f14c/README.en.md +31 -0
- package/vendor/components/sha256/435c3f8e0c0abc123866e57ae2c7f3409e19d14a2eb67b1fde84c4da5d95f14c/index.js +232 -0
- package/vendor/components/sha256/43740da51de85c1b7ec1eaf688f93fd9ea25b15977ab075e6abac196f08643a6/index.js +122 -0
- package/vendor/components/sha256/4817f77bd021ec5c77d5a15ee56e2e34d31d1d98630e86225eb20f2f9bf095e9/index.js +812 -0
- package/vendor/components/sha256/4e4bf3b2968c36a334dc997e32e36f22ecbc4f5dfe1c76bb7a5beef002fe8899/index.js +228 -0
- package/vendor/components/sha256/553e132d1f84caad648bb7175a206d4c5d18c005b5ca17989f5e8a5e3f5cdfa1/index.js +75 -0
- package/vendor/components/sha256/5b02d8a81a41f4d1658f1972f3fc91de3cc431b2c71bb6b92601d58f734de9ec/README.en.md +34 -0
- package/vendor/components/sha256/5b02d8a81a41f4d1658f1972f3fc91de3cc431b2c71bb6b92601d58f734de9ec/index.js +244 -0
- package/vendor/components/sha256/5c72414df5a948a7cbb882be1e5bdd4113d188e357d4a0f01fabda15781417eb/LICENSE-tabler.txt +21 -0
- package/vendor/components/sha256/5c72414df5a948a7cbb882be1e5bdd4113d188e357d4a0f01fabda15781417eb/index.js +4868 -0
- package/vendor/components/sha256/5c72414df5a948a7cbb882be1e5bdd4113d188e357d4a0f01fabda15781417eb/names.txt +4808 -0
- package/vendor/components/sha256/636f47e955f5550f046cfc7a3de8de70c4b97aa77771bde2ee0e31d706bb032e/index.js +278 -0
- package/vendor/components/sha256/65ddc34bd9c75e073f4c2cd283369417fe88769521809670c6b8730852d4f647/index.js +97 -0
- package/vendor/components/sha256/6b0c75b0f697fe451197301de82a113f1c2548b67f7a8d2b56576d2bae8e240c/index.js +607 -0
- package/vendor/components/sha256/6cdf432d3e61be3ff15e80910369324ac7ea0e8b9f62c32ef37bf09a5bfe93b9/README.en.md +33 -0
- package/vendor/components/sha256/6cdf432d3e61be3ff15e80910369324ac7ea0e8b9f62c32ef37bf09a5bfe93b9/index.js +390 -0
- package/vendor/components/sha256/6d648d0e5c96ec680c04a14b7c3d672010d3b9f101197689e9672ec00174383d/README.en.md +31 -0
- package/vendor/components/sha256/6d648d0e5c96ec680c04a14b7c3d672010d3b9f101197689e9672ec00174383d/index.js +267 -0
- package/vendor/components/sha256/71208afc5c8ea1ed6d2180f46de7385e43990cfb046ba350eefb917eca5d92fe/README.en.md +22 -0
- package/vendor/components/sha256/71208afc5c8ea1ed6d2180f46de7385e43990cfb046ba350eefb917eca5d92fe/index.js +145 -0
- package/vendor/components/sha256/7552a029f30f9c2f2ec8c5af4f144b63eeffc9172b53e35a925821f69a738b64/README.en.md +44 -0
- package/vendor/components/sha256/7552a029f30f9c2f2ec8c5af4f144b63eeffc9172b53e35a925821f69a738b64/index.js +203 -0
- package/vendor/components/sha256/781a45d97f1325cfb40aa98d00e1db9600949158fdb2749b0223b019c67a80f2/index.js +919 -0
- package/vendor/components/sha256/850944419734168be3dc202057de128131869c471cb8ab3baec2cfe789d56493/index.js +465 -0
- package/vendor/components/sha256/863d4d42075fbae1084089730f10da943c88d3e3e655235f28c24b9a3cf95c88/README.en.md +37 -0
- package/vendor/components/sha256/863d4d42075fbae1084089730f10da943c88d3e3e655235f28c24b9a3cf95c88/index.js +424 -0
- package/vendor/components/sha256/8a892d25d0bb6105ba31ea690b465876ce3af1fbaf18e2a9ce44ad2fee81260e/index.js +162 -0
- package/vendor/components/sha256/8acec8f299510287fbad6a69311ec58a39b0e99647dd03609c818e053b3b6087/index.js +484 -0
- package/vendor/components/sha256/8ef66bd1e800bcbedef436585469d308665aaa1ab6011aee699544302d0a8ad0/index.js +312 -0
- package/vendor/components/sha256/8fa5ed6ab12a27542e077ff965bea626ff9450b330609304dc1148fc8dbb68b0/README.en.md +40 -0
- package/vendor/components/sha256/8fa5ed6ab12a27542e077ff965bea626ff9450b330609304dc1148fc8dbb68b0/index.js +348 -0
- package/vendor/components/sha256/a0c71874d83045baaef70285bd00d87a7c6c43219fa5630dfff60d5cb08509be/index.js +250 -0
- package/vendor/components/sha256/a31f39625d7d1087d06a72b644cec417372f98add940288257ef07f812d8395a/index.js +747 -0
- package/vendor/components/sha256/ae04a57be4a26b7443796a93c58adcf1cbcf746120eba619bf9c2bcdce53c640/README.en.md +38 -0
- package/vendor/components/sha256/ae04a57be4a26b7443796a93c58adcf1cbcf746120eba619bf9c2bcdce53c640/index.js +289 -0
- package/vendor/components/sha256/ae06622a328da2a01260bc68b28bb632c391e8d62a4e8387638e5a944525a418/index.js +521 -0
- package/vendor/components/sha256/b490139e9afa84164054738532d5ec4985bf071e40791d903012fe3b850bae43/README.en.md +24 -0
- package/vendor/components/sha256/b490139e9afa84164054738532d5ec4985bf071e40791d903012fe3b850bae43/index.js +103 -0
- package/vendor/components/sha256/b756c66d5c6e6ace90912ab467dea3031f2c9b291d8b2a786ca660faa0e8ac84/index.js +121 -0
- package/vendor/components/sha256/babd98da50ea334b63f79c66be436d092e8aea32654e011a6444667abb882e77/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/babd98da50ea334b63f79c66be436d092e8aea32654e011a6444667abb882e77/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/babd98da50ea334b63f79c66be436d092e8aea32654e011a6444667abb882e77/fixtures/chords.json +89 -0
- package/vendor/components/sha256/babd98da50ea334b63f79c66be436d092e8aea32654e011a6444667abb882e77/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/babd98da50ea334b63f79c66be436d092e8aea32654e011a6444667abb882e77/fixtures/extras.json +192 -0
- package/vendor/components/sha256/babd98da50ea334b63f79c66be436d092e8aea32654e011a6444667abb882e77/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/babd98da50ea334b63f79c66be436d092e8aea32654e011a6444667abb882e77/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/babd98da50ea334b63f79c66be436d092e8aea32654e011a6444667abb882e77/fixtures/ties.json +360 -0
- package/vendor/components/sha256/babd98da50ea334b63f79c66be436d092e8aea32654e011a6444667abb882e77/index.js +508 -0
- package/vendor/components/sha256/bea7cb344f55677d5756c9711b90cc971126830ec5f66a03f71f13dbfadc401e/index.js +351 -0
- package/vendor/components/sha256/c08b25a2f7be68c36634cdee180aa617fd018d80b7ddf2a484a2edb4acffdbe0/README.en.md +42 -0
- package/vendor/components/sha256/c08b25a2f7be68c36634cdee180aa617fd018d80b7ddf2a484a2edb4acffdbe0/index.js +268 -0
- package/vendor/components/sha256/cbe8bb4b2fd0845a9333bc2064d86758ea6465992ad86a99167ba17f57f3e382/README.en.md +51 -0
- package/vendor/components/sha256/cbe8bb4b2fd0845a9333bc2064d86758ea6465992ad86a99167ba17f57f3e382/index.js +228 -0
- package/vendor/components/sha256/d2df3d70fc7c6e07e3cad7332a7e5501e84abeb24653786e567f57046adebcba/index.js +268 -0
- package/vendor/components/sha256/d386f2b94cd9fbed765ad301aa7009228599edb2859efe7f37a98d7aaa44b9bb/README.en.md +35 -0
- package/vendor/components/sha256/d386f2b94cd9fbed765ad301aa7009228599edb2859efe7f37a98d7aaa44b9bb/index.js +179 -0
- package/vendor/components/sha256/e6d219f67d241fdf00a40d4cec261d9dd3c09ad3110d3418d4e843d0f2b8c196/index.js +429 -0
- package/vendor/components/sha256/ef60e6c089f5f6e909f439af8fc0c9c0a2d7a1aafad5e65be6328ba993b990a0/index.js +354 -0
- package/vendor/components/sha256/f6f47601c90f0195353e94b76d57499591d6330a7e35714958a2c41229f70da2/index.js +198 -0
- package/vendor/components/sha256/f9159c87fa998487787f738fdfab52aa2483f52f170fc258840b127f6ed06051/README.en.md +44 -0
- package/vendor/components/sha256/f9159c87fa998487787f738fdfab52aa2483f52f170fc258840b127f6ed06051/index.js +304 -0
- package/vendor/components/sha256/fb482cbe2ca1da07d08f41880e03fe75ff3f1d29842ff40946541e63030219b8/README.en.md +42 -0
- package/vendor/components/sha256/fb482cbe2ca1da07d08f41880e03fe75ff3f1d29842ff40946541e63030219b8/index.js +481 -0
- package/vendor/components/sha256/fdcea28e27638d8bfe234016672375e14de8bb97c32f7b6840d1b7b10ac4b1cd/index.js +233 -0
- package/vendor/components/sha256/ff5eaa083a46db6aefc13d97b27c9487f9fc318805f5c89b05a12e63703b7a72/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/ff5eaa083a46db6aefc13d97b27c9487f9fc318805f5c89b05a12e63703b7a72/OFL.txt +93 -0
- package/vendor/components/sha256/ff5eaa083a46db6aefc13d97b27c9487f9fc318805f5c89b05a12e63703b7a72/index.js +749 -0
- package/vendor/components/sha256/ff5eaa083a46db6aefc13d97b27c9487f9fc318805f5c89b05a12e63703b7a72/strokes-CHANGES.md +20 -0
- package/vendor/components-2/manifest-2.7.0.json +2118 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// m-folds: the validation block advances through k train/validation splits.
|
|
2
|
+
egatariParts.define({name: "folds", version: "2.0.1", requires: {base: "1.2.0"}, element: "m-folds"}, function(deps){
|
|
3
|
+
"use strict";
|
|
4
|
+
var base = deps.base;
|
|
5
|
+
var TEXT = {
|
|
6
|
+
ja: {train: "学習(学)", validate: "検証(検・枠)", t: "学", v: "検", error: "誤差", mean: "平均", fold: "分割"},
|
|
7
|
+
en: {train: "train (T)", validate: "validate (V, outline)", t: "T", v: "V", error: "error", mean: "mean", fold: "fold"}
|
|
8
|
+
};
|
|
9
|
+
function set(e, a, v){ e.setAttribute(a, String(v)); }
|
|
10
|
+
function fmt(v){ return v.toFixed(2); }
|
|
11
|
+
return class extends base.MotionElement {
|
|
12
|
+
static partName = "folds";
|
|
13
|
+
static preview = "none";
|
|
14
|
+
static shape = {schema: {type: "object", additionalProperties: false, required: ["k"], properties: {
|
|
15
|
+
k: {type: "number"}, errors: {type: "array", items: {type: "number"}}, labels: {type: "array", items: {type: "string"}}
|
|
16
|
+
}}, example: {k: 5, errors: [0.21, 0.18, 0.25, 0.19, 0.22], labels: ["1", "2", "3", "4", "5"]}};
|
|
17
|
+
static props = {
|
|
18
|
+
dur: {type: "number", default: 1, doc: "ステップの秒数"},
|
|
19
|
+
size: {type: "number", default: 0, doc: "文字 px(0 は 26)"}
|
|
20
|
+
};
|
|
21
|
+
get steps(){ var k = this.data.k; return Number.isInteger(k) && k >= 2 && k <= 10 ? k + 1 : 0; }
|
|
22
|
+
duration(k){ return k >= 1 && k <= this.steps ? this.props.dur : 0; }
|
|
23
|
+
label(g, x, y, s, anchor){
|
|
24
|
+
var e = base.el("text", {x: x, y: y, "font-size": this.fs, "text-anchor": anchor || "start", fill: "var(--fg)"}, g);
|
|
25
|
+
e.textContent = s; return e;
|
|
26
|
+
}
|
|
27
|
+
mount(ctx){
|
|
28
|
+
var self = this, d = this.data, P = this.props;
|
|
29
|
+
this.T = /^ja\b/i.test(ctx.lang || "") ? TEXT.ja : TEXT.en;
|
|
30
|
+
var T = this.T;
|
|
31
|
+
if (!(Number.isFinite(P.dur) && P.dur > 0)){ ctx.report("attr", "[folds] dur must be positive; using 1"); P.dur = 1; }
|
|
32
|
+
if (!(P.size === 0 || Number.isFinite(P.size) && P.size >= 24)){ ctx.report("attr", "[folds] size must be 0 or at least 24; using 26"); P.size = 0; }
|
|
33
|
+
this.fs = P.size || 26;
|
|
34
|
+
this.style.display = "block"; this.style.position = "relative"; this.style.writingMode = "horizontal-tb"; this.setAttribute("role", "img");
|
|
35
|
+
if (!Number.isInteger(d.k) || d.k < 2 || d.k > 10){ ctx.report("data", "[folds] k must be an integer 2–10"); return; }
|
|
36
|
+
if (d.errors && (d.errors.length !== d.k || d.errors.some(function(v){ return v < 0; }))){ ctx.report("data", "[folds] errors must contain k non-negative numbers"); return; }
|
|
37
|
+
if (d.labels && d.labels.length !== d.k){ ctx.report("data", "[folds] labels must contain k names"); return; }
|
|
38
|
+
var labels = d.labels || Array.from({length: d.k}, function(_, i){ return String(i + 1); });
|
|
39
|
+
var errors = d.errors || null, mean = errors ? errors.reduce(function(s, v){ return s + v / d.k; }, 0) : null;
|
|
40
|
+
this.model = {k: d.k, labels: labels, errors: errors, mean: mean};
|
|
41
|
+
var summary = labels.map(function(s, i){ return T.fold + " " + (i + 1) + ": " + T.validate + " " + s + ", " + T.train + " " + labels.filter(function(_, j){ return j !== i; }).join(", ") + (errors ? "; " + T.error + " " + fmt(errors[i]) : ""); }).join("; ");
|
|
42
|
+
if (!this.getAttribute("aria-label")) this.setAttribute("aria-label", summary + (errors ? "; " + T.mean + " " + fmt(mean) : ""));
|
|
43
|
+
var W = Math.max(1, this.clientWidth), H = Math.max(1, this.clientHeight), fs = this.fs, line = fs * 1.45 + 4;
|
|
44
|
+
var width = function(s){ return base.textWidth(s, fs, {font: self}); };
|
|
45
|
+
var errorWidth = errors ? Math.max(width(T.error), width(T.mean + " " + fmt(mean)), ...errors.map(function(v){ return Math.max(width(fmt(v)), fmt(v).length * fs * 0.62); })) + 8 : 0;
|
|
46
|
+
var left = Math.max(42, width(String(d.k)) + 16), ex = W - errorWidth - 8, right = errors ? ex - 20 : W - 8;
|
|
47
|
+
var bw = (right - left) / d.k, top = 2 * line + 16;
|
|
48
|
+
var footer = errors ? line + fs * 0.4 : 0, minRow = Math.max(32, Math.ceil(fs * 1.2));
|
|
49
|
+
var minHeight = Math.ceil(top + d.k * minRow + footer + 4);
|
|
50
|
+
var rh = Math.max(minRow, Math.min(Math.max(44, line + 4), (H - top - footer - 4) / d.k)), bh = rh - 6;
|
|
51
|
+
var letters = bh >= fs * 1.43;
|
|
52
|
+
this.geometry = {row: rh, minRow: minRow, minHeight: minHeight, letters: letters};
|
|
53
|
+
// Compact row numbers/errors use a monospace font whose box fits 32px rows.
|
|
54
|
+
function rowLabel(g, x, y, s, anchor){
|
|
55
|
+
var e = self.label(g, x, y, s, anchor);
|
|
56
|
+
if (!letters) e.setAttribute("style", "font-family:ui-monospace, Menlo, Consolas, monospace;fill:var(--fg)");
|
|
57
|
+
return e;
|
|
58
|
+
}
|
|
59
|
+
this.svg = base.el("svg", {viewBox: "0 0 " + W + " " + H, width: W, height: H, "aria-hidden": "true"}, this);
|
|
60
|
+
this.header = base.el("g", {opacity: 0}, this.svg);
|
|
61
|
+
function swatch(x, validate, text){
|
|
62
|
+
base.el("rect", {x: x, y: 8, width: 32, height: fs * 1.45, fill: validate ? "var(--emph-tint)" : "var(--term-tint)", stroke: validate ? "var(--emph)" : "none", "stroke-width": 3}, self.header);
|
|
63
|
+
self.label(self.header, x + 42, fs + 4, text);
|
|
64
|
+
}
|
|
65
|
+
var legend2 = 8 + 42 + width(T.train) + 28;
|
|
66
|
+
swatch(8, false, T.train); swatch(legend2, true, T.validate);
|
|
67
|
+
var legendWidth = Math.ceil(legend2 + 42 + width(T.validate) + 8);
|
|
68
|
+
if (legendWidth > W) ctx.report("size", "[folds] legend needs " + legendWidth + " px width; element has " + W + " px");
|
|
69
|
+
if (bw < 8) ctx.report("size", "[folds] " + d.k + " blocks have " + Math.floor(bw) + " px each; allow at least 8 px per block");
|
|
70
|
+
labels.forEach(function(s, i){
|
|
71
|
+
self.label(self.header, left + (i + 0.5) * bw, 2 * line, s, "middle");
|
|
72
|
+
if (width(s) > bw - 8) ctx.report("size", "[folds] label " + (i + 1) + " needs " + Math.ceil(width(s)) + " px; block fits " + Math.max(0, Math.floor(bw - 8)) + " px (shorten the label)");
|
|
73
|
+
});
|
|
74
|
+
if (errors) this.label(this.header, ex, 2 * line, T.error);
|
|
75
|
+
this.rows = labels.map(function(_, i){
|
|
76
|
+
var g = base.el("g", {opacity: 0}, self.svg), y = top + i * rh;
|
|
77
|
+
rowLabel(g, left - 12, y + bh / 2 + fs * 0.31, String(i + 1), "end");
|
|
78
|
+
var blocks = labels.map(function(_, j){
|
|
79
|
+
var valid = i === j, x = left + j * bw + 3;
|
|
80
|
+
var rect = base.el("rect", {x: x, y: y, width: Math.max(1, bw - 6), height: bh, rx: 3, fill: valid ? "var(--emph-tint)" : "var(--term-tint)", stroke: valid ? "var(--emph)" : "none", "stroke-width": 3}, g);
|
|
81
|
+
if (letters && bw - 6 >= 40) self.label(g, x + (bw - 6) / 2, y + bh / 2 + fs * 0.31, valid ? T.v : T.t, "middle");
|
|
82
|
+
return {rect: rect, validation: valid};
|
|
83
|
+
});
|
|
84
|
+
if (errors) rowLabel(g, ex, y + bh / 2 + fs * 0.31, fmt(errors[i]));
|
|
85
|
+
return {g: g, blocks: blocks};
|
|
86
|
+
});
|
|
87
|
+
this.finalLayer = base.el("g", {opacity: 0}, this.svg);
|
|
88
|
+
var bottom = top + d.k * rh, finalY = bottom + line;
|
|
89
|
+
if (errors){
|
|
90
|
+
base.el("line", {x1: ex, x2: W - 8, y1: bottom + 6, y2: bottom + 6, stroke: "var(--muted)", "stroke-width": 2}, this.finalLayer);
|
|
91
|
+
this.label(this.finalLayer, ex, finalY, T.mean + " " + fmt(mean));
|
|
92
|
+
}
|
|
93
|
+
if (H < minHeight) ctx.report("size", "[folds] k = " + d.k + " needs at least " + minHeight + " px height (header " + top.toFixed(1) + " + " + d.k + " × " + minRow + " rows + " + (footer + 4).toFixed(1) + " footer); element has " + H + " px");
|
|
94
|
+
}
|
|
95
|
+
render(k, t){
|
|
96
|
+
if (!this.model) return;
|
|
97
|
+
var dur = this.props.dur, phase = function(step){ return k > step ? 1 : k < step ? 0 : base.prog(t, 0, dur); };
|
|
98
|
+
set(this.header, "opacity", phase(1));
|
|
99
|
+
this.rows.forEach(function(o, i){ set(o.g, "opacity", phase(i + 1)); });
|
|
100
|
+
set(this.finalLayer, "opacity", phase(this.model.k + 1));
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
});
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// m-collect:並んだ札(回答など)が動いて縮み、少数の箱(要約)にまとまる
|
|
2
|
+
// <m-collect style="height:400px"><script type="application/json">
|
|
3
|
+
// {"chips":[{"label":"回答 1","to":[0,1]}, …], "targets":[{"label":"事後平均","tex":"\\mu_n"}, …], "cols":4}
|
|
4
|
+
// (JSON の終わり)</m-collect>
|
|
5
|
+
// 段階 1 で、札 i が targets[to] へ動く(to は番号か番号の配列。配列なら札の写しがそれぞれへ動く)。
|
|
6
|
+
// 箱は始めに点線の枠だけ出し、札が着いてから中身(label / tex / value)を出す
|
|
7
|
+
// 2.0(Egatari spec §6.1 の部品):base の MotionElement・el・mtext・prog・lerp・previewOpacity を使い、プレイヤーのグローバルは使わない。
|
|
8
|
+
// 式(tex)は組み立てのときに KaTeX で描く(spec §6.2):build.fields の targets[].tex を作り手が描いて texHtml を足し、
|
|
9
|
+
// この部品は markup-reader で決まった要素と属性だけを読んで置く(再生のときに KaTeX は動かない)。描いた結果がなければ tex を字のまま出して知らせる
|
|
10
|
+
egatariParts.define({name: "collect", version: "2.0.3", requires: {base: "1.2.0", "markup-reader": "1.0.2"}, element: "m-collect"}, function(deps){
|
|
11
|
+
"use strict";
|
|
12
|
+
var base = deps.base, MR = deps["markup-reader"];
|
|
13
|
+
return class extends base.MotionElement {
|
|
14
|
+
static partName = "collect"; // the registry name (define meta name), for report prefixes
|
|
15
|
+
// 組み立てのときに描く欄(spec §6.2)。式の意味は字(tex)でも持つので、KaTeX の出力は HTML だけ
|
|
16
|
+
static build = {fields: {"targets[].tex": "katex"}, options: {katex: {output: "html"}}};
|
|
17
|
+
// データの形(kit/shape.js)
|
|
18
|
+
static shape = {
|
|
19
|
+
schema: {type: "object", additionalProperties: false, required: ["chips", "targets"], properties: {
|
|
20
|
+
chips: {type: "array", minItems: 1, items: {type: "object", required: ["to"], properties: {label: {type: "string"}, to: {type: ["integer", "array"], items: {type: "integer"}}}}},
|
|
21
|
+
targets: {type: "array", minItems: 1, items: {type: "object", properties: {label: {type: "string"}, tex: {type: "string"}, texHtml: {type: "string"}, value: {type: ["string", "number"]}, tone: {type: "string"}, x: {type: "number"}, y: {type: "number"}}}},
|
|
22
|
+
cols: {type: "integer"}, renderers: {type: "object"}}},
|
|
23
|
+
example: {chips: [{label: "表", to: 0}, {label: "裏", to: 1}], targets: [{label: "表の数"}, {label: "裏の数"}], cols: 2},
|
|
24
|
+
};
|
|
25
|
+
static steps = 1;
|
|
26
|
+
static props = {
|
|
27
|
+
move: {type: "number", default: 0.9, doc: "札 1 枚が動く秒数"},
|
|
28
|
+
stagger: {type: "number", default: 0.08, doc: "札ごとの出発のずれ(秒)"},
|
|
29
|
+
shrink: {type: "number", default: 0.35, doc: "着いたときの札の縮尺"},
|
|
30
|
+
"chip-w": {type: "number", default: 0, doc: "札の幅(0 なら列の数から決める)"},
|
|
31
|
+
"chip-h": {type: "number", default: 56, doc: "札の高さ"},
|
|
32
|
+
"box-w": {type: "number", default: 260, doc: "箱の幅"},
|
|
33
|
+
"box-h": {type: "number", default: 110, doc: "箱の高さ"},
|
|
34
|
+
};
|
|
35
|
+
mount(ctx){
|
|
36
|
+
var P = this.props, D = base, self = this, data = this.data || {chips: [], targets: []}, sk = MR.sink(this, ctx);
|
|
37
|
+
this.style.display = "block";
|
|
38
|
+
var W = this.clientWidth, H = this.clientHeight;
|
|
39
|
+
var svg = D.el("svg", {viewBox: "0 0 " + W + " " + H, width: W, height: H, style: "display:block;overflow:visible"}, this);
|
|
40
|
+
var tone = {term: ["var(--term)", "var(--term-tint)"], emph: ["var(--emph)", "var(--emph-tint)"], muted: ["var(--muted)", "var(--bg)"]};
|
|
41
|
+
// 札の並び:上の段に cols 列で並べる
|
|
42
|
+
var C = data.chips || [], n = C.length, cols = data.cols || n, rows = Math.ceil(n / cols), gap = 14;
|
|
43
|
+
var cw = P["chip-w"] || Math.min(220, (W - gap * (cols - 1)) / cols), ch = P["chip-h"];
|
|
44
|
+
var gx = (W - (cw * cols + gap * (cols - 1))) / 2;
|
|
45
|
+
// 箱の並び:下の段に等間隔(x, y を書けばその位置。中心の座標)
|
|
46
|
+
var T = data.targets || [], bw = P["box-w"], bh = P["box-h"];
|
|
47
|
+
// tex と label のある箱は label を箱の下に書くので、その分(36 px)だけ下の段を上げる(要素の下にはみ出さない)
|
|
48
|
+
var gR = D.el("g", {}, svg); // 残る札(箱より下に重ねる。札の段が箱にかかっても箱の字は隠れない)
|
|
49
|
+
var under = T.some(function(tg){ return tg.tex && tg.label && tg.y === undefined; }) ? 36 : 0;
|
|
50
|
+
this.targets = T.map(function(tg, j){
|
|
51
|
+
var cx = tg.x !== undefined ? tg.x : W * (j + 1) / (T.length + 1), cy = tg.y !== undefined ? tg.y : H - bh / 2 - 4 - under;
|
|
52
|
+
var c = tone[tg.tone || "emph"] || tone.emph;
|
|
53
|
+
var frame = D.el("rect", {x: cx - bw / 2, y: cy - bh / 2, width: bw, height: bh, rx: 12, fill: "none", stroke: "var(--line)", "stroke-width": 2, "stroke-dasharray": "8 6", opacity: 0}, svg);
|
|
54
|
+
var g = D.el("g", {opacity: 0}, svg);
|
|
55
|
+
D.el("rect", {x: cx - bw / 2, y: cy - bh / 2, width: bw, height: bh, rx: 12, fill: c[1], stroke: c[0], "stroke-width": 3}, g);
|
|
56
|
+
var hasV = tg.value !== undefined, ly = cy + (hasV ? -16 : 9);
|
|
57
|
+
if (tg.tex) MR.texFrame(g, cx, ly + 4, tg, "tex", {size: 30, anchor: "middle", color: c[0], w: bw, h: 50}, sk).firstChild.style.verticalAlign = "top";
|
|
58
|
+
else D.mtext(g, cx, ly, tg.label || "", {"text-anchor": "middle", "font-size": 28, "font-weight": 700, fill: c[0]});
|
|
59
|
+
if (hasV) D.mtext(g, cx, cy + 38, String(tg.value), {"text-anchor": "middle", "font-size": 24, fill: "var(--fg)"});
|
|
60
|
+
// 下に入らなければ(y を書いた箱)箱の上に
|
|
61
|
+
if (tg.tex && tg.label) D.mtext(g, cx, cy + bh / 2 + 32 + 4 <= H ? cy + bh / 2 + 32 : cy - bh / 2 - 10, tg.label, {"text-anchor": "middle", "font-size": 24, fill: "var(--muted)"});
|
|
62
|
+
return {frame: frame, g: g, cx: cx, cy: cy, col: c, last: 0};
|
|
63
|
+
});
|
|
64
|
+
// 札と、行き先ごとの写し。もとの札は元の場所に薄い枠で残る(動いた後も、何を集めたかが図に残る。印刷でも読める)
|
|
65
|
+
this.chips = []; this.rests = [];
|
|
66
|
+
var badTo = [];
|
|
67
|
+
C.forEach(function(cp, i){
|
|
68
|
+
var r = Math.floor(i / cols), q = i % cols;
|
|
69
|
+
var x = gx + q * (cw + gap) + cw / 2, y = 4 + ch / 2 + r * (ch + gap);
|
|
70
|
+
var to = Array.isArray(cp.to) ? cp.to : [cp.to === undefined ? 0 : cp.to];
|
|
71
|
+
var start = i * P.stagger;
|
|
72
|
+
to.forEach(function(j){ if (!self.targets[j]) badTo.push("chip " + i + " (" + JSON.stringify(cp.label || "") + "): to " + JSON.stringify(j)); });
|
|
73
|
+
if (to.some(function(j){ return self.targets[j]; })){
|
|
74
|
+
var rg = D.el("g", {transform: "translate(" + x.toFixed(2) + " " + y.toFixed(2) + ")", opacity: 0}, gR);
|
|
75
|
+
D.el("rect", {x: -cw / 2, y: -ch / 2, width: cw, height: ch, rx: 8, fill: "none", stroke: "var(--line)", "stroke-width": 2, "stroke-dasharray": "6 5"}, rg);
|
|
76
|
+
D.mtext(rg, 0, 9, cp.label || "", {"text-anchor": "middle", "font-size": 24, fill: "var(--muted)"});
|
|
77
|
+
self.rests.push({g: rg, start: start});
|
|
78
|
+
}
|
|
79
|
+
to.forEach(function(j){
|
|
80
|
+
var tg = self.targets[j]; if (!tg) return;
|
|
81
|
+
var c = tone[cp.tone || "term"] || tone.term;
|
|
82
|
+
var g = D.el("g", {}, svg);
|
|
83
|
+
D.el("rect", {x: -cw / 2, y: -ch / 2, width: cw, height: ch, rx: 8, fill: c[1], stroke: c[0], "stroke-width": 2}, g);
|
|
84
|
+
D.mtext(g, 0, 9, cp.label || "", {"text-anchor": "middle", "font-size": 24});
|
|
85
|
+
tg.last = Math.max(tg.last, start + P.move);
|
|
86
|
+
self.chips.push({g: g, x0: x, y0: y, x1: tg.cx, y1: tg.cy, start: start});
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
if (badTo.length) ctx.report("data", "[collect] " + badTo.join("; ") + ": not a target number 0–" + (T.length - 1) + " (the copy is not drawn)");
|
|
90
|
+
this.rows = rows;
|
|
91
|
+
sk.flush(); // what the formulas have to report, once per kind (spec §6.2)
|
|
92
|
+
}
|
|
93
|
+
duration(k){ var d = 0; this.targets.forEach(function(tg){ d = Math.max(d, tg.last + 0.3); }); return k >= 1 ? d : 0; }
|
|
94
|
+
render(k, t, ctx){
|
|
95
|
+
var P = this.props, D = base;
|
|
96
|
+
var T = k < 1 ? -Infinity : t; // 段階 0 は動く前
|
|
97
|
+
// 先の段階を薄く見せる表示(授業の表示):段階 0 では、まとめた後の箱をテーマの --preview-opacity の濃さで出す(札は動かさない)
|
|
98
|
+
var PV = 0;
|
|
99
|
+
if (k < 1 && ctx.preview) PV = base.previewOpacity(this);
|
|
100
|
+
var pr = function(start, dur){ return T === -Infinity ? 0 : D.prog(T, start, dur); };
|
|
101
|
+
this.chips.forEach(function(c){
|
|
102
|
+
var e = pr(c.start, P.move);
|
|
103
|
+
// 少し持ち上げてから落ちる弧(中点で上へ 40px)
|
|
104
|
+
var x = D.lerp(c.x0, c.x1, e), y = D.lerp(c.y0, c.y1, e) - Math.sin(Math.PI * e) * 40;
|
|
105
|
+
var s = D.lerp(1, P.shrink, e), op = e < 0.75 ? 1 : 1 - (e - 0.75) / 0.25;
|
|
106
|
+
c.g.setAttribute("transform", "translate(" + x.toFixed(2) + " " + y.toFixed(2) + ") scale(" + s.toFixed(4) + ")");
|
|
107
|
+
c.g.setAttribute("opacity", op.toFixed(3));
|
|
108
|
+
});
|
|
109
|
+
// 残る札:写しが出発したら現れる
|
|
110
|
+
this.rests.forEach(function(c){ c.g.setAttribute("opacity", Math.min(1, pr(c.start, P.move) * 4).toFixed(3)); });
|
|
111
|
+
this.targets.forEach(function(tg){
|
|
112
|
+
tg.frame.setAttribute("opacity", (pr(0, 0.3) * (1 - pr(tg.last - 0.1, 0.3))).toFixed(3));
|
|
113
|
+
var e = pr(tg.last - 0.15, 0.45);
|
|
114
|
+
if (PV){ e = 1; tg.g.setAttribute("opacity", PV.toFixed(3)); }
|
|
115
|
+
else tg.g.setAttribute("opacity", e.toFixed(3));
|
|
116
|
+
var s = D.lerp(0.9, 1, e);
|
|
117
|
+
tg.g.setAttribute("transform", "translate(" + tg.cx + " " + tg.cy + ") scale(" + s.toFixed(4) + ") translate(" + (-tg.cx) + " " + (-tg.cy) + ")");
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Reading abcjs 6.7.2 for m-score (notes for the build hook)
|
|
2
|
+
|
|
3
|
+
m-score knows nothing about abcjs (components 2.0 design §4.1). It reads `abcMap` (`tempo`, `notes`, `beams`, `arcs`)
|
|
4
|
+
and finds things in `abcSvg` only by the build's data- tags, never by an abcjs class. This file gives the abcjs facts a
|
|
5
|
+
producer needs to write those tags. `tools/score-fixtures.mjs` follows them. It is the stand-in for Studio's build
|
|
6
|
+
hook and writes `fixtures/*.json` and `demo.html`. They were checked on the fixtures here (`ties.json` is test-only) and in
|
|
7
|
+
abcjs's source (`src/write/creation/abstract-engraver.js`, `src/write/draw/tie.js`, `src/write/draw/beam.js`).
|
|
8
|
+
|
|
9
|
+
## Tags the build writes (all digits; the part reads no other data- attribute)
|
|
10
|
+
|
|
11
|
+
| Tag | On | Value | The part shows it with |
|
|
12
|
+
|---|---|---|---|
|
|
13
|
+
| `data-note="i"` | each note's or rest's `<g>` (`abselem.elemset[0]` of the parsed note) | its index in `notes` | that note (and colours it while current) |
|
|
14
|
+
| `data-beam="k"` | each beam path (`abcjs-beam-elem`) | its index in `beams` | the first note of `beams[k]` |
|
|
15
|
+
| `data-measure="m"` | each bar line's `<g>` (`abselem.elemset[0]` of a `bar` element) | the measure it closes (its `abcjs-mm`) | the last note of measure `m` |
|
|
16
|
+
| `data-arc="n"` | each drawn tie or slur piece | `arcs[].n` | a tie with its `to`, a slur with its `from` |
|
|
17
|
+
|
|
18
|
+
- Everything without a tag is shown from step 0: the staff, clef, key and time signatures, and whatever else abcjs draws.
|
|
19
|
+
So anything that should appear with a note must be tagged. This covers decorations, lyrics and chord symbols, if abcjs
|
|
20
|
+
ever draws them outside the note's `<g>`; the fixtures have none.
|
|
21
|
+
- A `<g>` that contains a tag is looked into. One that contains none is kept whole.
|
|
22
|
+
- A staff line is one child of the root `<svg>`. abcjs puts each line in its own `abcjs-staff-wrapper` `<g>`.
|
|
23
|
+
The part stacks these children and puts the names band under each.
|
|
24
|
+
- The part reports, without guessing:
|
|
25
|
+
- a note with no `data-note` element, and a `data-note` used twice;
|
|
26
|
+
- a beam with no `data-beam` element;
|
|
27
|
+
- an arc with no `data-arc` line;
|
|
28
|
+
- a tag value that `abcMap` does not have.
|
|
29
|
+
- `notes[].cls` (`"abcjs-v0 abcjs-mm1 abcjs-n2"`) stays in `abcMap` as the adapter's record, for checking. The part does not read it.
|
|
30
|
+
- `tools/test-score.mjs` and `tools/test-score-noclass.mjs` strip every `abcjs-*` class from the fixtures. They check
|
|
31
|
+
that the part behaves the same: same steps, events, names and DOM.
|
|
32
|
+
|
|
33
|
+
## Notes
|
|
34
|
+
|
|
35
|
+
- With `add_classes: true`, a note or rest is a `<g>` with `abcjs-note` or `abcjs-rest`, `abcjs-l<line>`, `abcjs-m<measure in the line>`,
|
|
36
|
+
`abcjs-mm<measure>`, `abcjs-v<voice>` and `abcjs-n<note in the measure>`. Only `abcjs-v… abcjs-mm… abcjs-n…` together is unique.
|
|
37
|
+
- Pitch name: the letter and octave come from `pitches[q].pitch` (a diatonic step, 0 = C4). The accidental comes from the
|
|
38
|
+
sounding MIDI pitch after `tune.setUpAudio()` (`midiPitches[q].pitch`). A tied continuation has no `midiPitches`.
|
|
39
|
+
- `duration` is in whole notes. Multiply it by 4 for quarter notes, and by `tripletMultiplier` from `startTriplet` to
|
|
40
|
+
`endTriplet`. Tempo is `bpm × Σ duration × 4` quarter notes per minute.
|
|
41
|
+
- abcjs writes the tempo, title and lyrics at 16–20 units, below the 24 px floor. Render with `%%printtempo false` and without `T:`.
|
|
42
|
+
|
|
43
|
+
## Beams
|
|
44
|
+
|
|
45
|
+
`drawBeam` draws one path per beam group, all levels in one path, with class `abcjs-beam-elem`. The paths come in the
|
|
46
|
+
order of the engraved voice's `beams`, so the build tags the k-th `abcjs-beam-elem` path in document order `data-beam="k"` (`tune.lines[l].staffGroup.voices[v].beams`, skipping `'bar'`). The notes of each
|
|
47
|
+
group are in `elems[].abcelem`.
|
|
48
|
+
|
|
49
|
+
## Ties and slurs
|
|
50
|
+
|
|
51
|
+
- **Which arcs exist** (from the parsed notes): a tie per pitch, from a pitch with `startTie` to the next note whose pitch
|
|
52
|
+
with the same step has `endTie`. abcjs ends a tie on the first open tie with that pitch, or else the oldest one. A slur
|
|
53
|
+
runs from `startSlur` to the `endSlur` with the same label, on the note or on a pitch. `[C-EG] [CEG]` ties only C.
|
|
54
|
+
- **Which path is which:** each drawn arc is a `TieElem` in the engraved voice's `otherchildren`. Its path is in `elemset[0]`
|
|
55
|
+
and its end noteheads are `anchor1` and `anchor2`. The notehead's `parent.abcelem` is the note, and `parent.heads`
|
|
56
|
+
gives the pitch. A `TieElem` does not record whether it is a tie or a slur.
|
|
57
|
+
- **Line breaks:** an arc that crosses a line break is drawn once per line. The piece on the first line has only `anchor1`
|
|
58
|
+
(class `abcjs-end-edge`). At the start of each later line abcjs recreates every open arc. That piece has only `anchor2`,
|
|
59
|
+
or neither on a middle line (class `abcjs-start-edge`).
|
|
60
|
+
- **Drawing order**, per staff line (the order of `otherchildren`):
|
|
61
|
+
1. First, the pieces continued from the previous line: all open slurs, in start order, then all open ties in the
|
|
62
|
+
order they were created (by start note; a chord's pitches low to high).
|
|
63
|
+
2. Then the arcs that start on this line, by start note. At one note abcjs goes pitch by pitch, low to high. For each
|
|
64
|
+
pitch it creates that pitch's tie, then any slur starting on that pitch. A slur over a chord sits on the lowest pitch.
|
|
65
|
+
So the order at one note is: the lowest pitch's tie, the slur, then the other pitches' ties.
|
|
66
|
+
- **Class quirks:**
|
|
67
|
+
- Every arc path has `abcjs-slur`.
|
|
68
|
+
- A slur within a line has `abcjs-legato`.
|
|
69
|
+
- A slur piece cut by a line break is drawn like a tie and has `abcjs-tie`.
|
|
70
|
+
- So does a slur between two notes of the same pitch with nothing between them.
|
|
71
|
+
- **Hidden duplicate:** the slur leaving a tied chord at a line break is drawn on exactly the same path as the lowest
|
|
72
|
+
pitch's tie, so it cannot be seen. The build drops it.
|
|
73
|
+
- **How `tools/score-fixtures.mjs` tags a piece:**
|
|
74
|
+
- A piece with both anchors matches the one arc between those notes; a tie must also match by pitch.
|
|
75
|
+
- A piece with one anchor can match both a tie and a slur at the same note. Then the order above decides: on the start
|
|
76
|
+
line the tie comes first, and on the next line the slur comes first.
|
|
77
|
+
- Every piece gets `data-arc="<n>"`. If a piece matches no arc, or more than one, the script fails.
|
|
78
|
+
|
|
79
|
+
## Writing only what the rendered-markup list admits (egatari-spec ce96072)
|
|
80
|
+
|
|
81
|
+
The part reads `abcSvg` through the spec's list (`schema/rendered-markup-1.json`, svg) and reports anything it drops.
|
|
82
|
+
abcjs 6.7.2 (`foregroundColor: "currentColor"`, also its default) writes, besides the drawing:
|
|
83
|
+
|
|
84
|
+
| abcjs writes | Admitted? | The build |
|
|
85
|
+
|---|---|---|
|
|
86
|
+
| `<style>` (its drag-and-drop CSS) | no | leaves it out |
|
|
87
|
+
| `<title>Sheet Music</title>` | yes | leaves it out (the part's drawing is aria-hidden; the slide gives the label) |
|
|
88
|
+
| `xmlns:xlink` on `<svg>`, `selectable` on each note's `<g>` | no | leaves them out |
|
|
89
|
+
| `data-name`, `data-index` | yes (data-*) | leaves them out: they are abcjs's, not build tags |
|
|
90
|
+
| `fill`, `stroke` on `<svg>` and `<g>` (`stroke="none"` on notes, clef, key, time), `stroke="none"` on text | yes (since ce96072) | keeps them as abcjs writes them |
|
|
91
|
+
| on text (chord symbols, lyrics, title, tempo): `font-family`, `text-decoration` | no | keeps them: the part drops them (expected losses: the slide's font, no underline); the demo has no text, `extras.json` (test only) does |
|
|
92
|
+
|
|
93
|
+
The data records the renderer once at its top: `renderers: {abcjs: {version: "6.7.2", options: {add_classes, staffwidth,
|
|
94
|
+
foregroundColor}}}` (spec §6.2).
|
|
95
|
+
|
|
96
|
+
## What m-score does with it
|
|
97
|
+
|
|
98
|
+
- It finds notes, beams, bar lines and arc pieces only by the tags above.
|
|
99
|
+
- A tie piece appears with the note it leads to (`to`), a slur piece with its first note (`from`).
|
|
100
|
+
- A pitch is not sounded again at note `j` when a tie arc has `to = j` and that `pitch`. A tied pitch sounds for the
|
|
101
|
+
whole chain.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) 2009-2026 Paul Rosen and Gregory Dyke
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
|
20
|
+
|
|
21
|
+
**This text is from: http://opensource.org/licenses/MIT**
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"abc": "X:1\nM:4/4\nL:1/2\n%%printtempo false\nQ:1/4=80\nK:C\n[CEG] [FAc] | [GBd] [CEG] |]",
|
|
3
|
+
"abcSvg": "<svg role=\"img\" fill=\"currentColor\" stroke=\"currentColor\" aria-label=\"Sheet Music\" width=\"550\" height=\"107.31\"><g class=\"abcjs-staff-wrapper abcjs-l0\"><g class=\"abcjs-staff abcjs-l0 abcjs-v0\"><path d=\"M 15 37.71 L 329.85 37.71 L 329.85 38.41 L 15 38.41 z\" stroke=\"none\" fill=\"currentColor\" class=\"abcjs-top-line\"></path><path d=\"M 15 45.46 L 329.85 45.46 L 329.85 46.16 L 15 46.16 z\" stroke=\"none\" fill=\"currentColor\"></path><path d=\"M 15 53.21 L 329.85 53.21 L 329.85 53.91 L 15 53.91 z\" stroke=\"none\" fill=\"currentColor\"></path><path d=\"M 15 60.96 L 329.85 60.96 L 329.85 61.66 L 15 61.66 z\" stroke=\"none\" fill=\"currentColor\"></path><path d=\"M 15 68.71 L 329.85 68.71 L 329.85 69.41 L 15 69.41 z\" stroke=\"none\" fill=\"currentColor\"></path></g><g class=\"abcjs-staff-extra abcjs-clef abcjs-l0 abcjs-m0 abcjs-mm0 abcjs-v0\" fill=\"currentColor\" stroke=\"none\"><path d=\"M 29.689999999999998 23.900000000000006c 0.09 -0.09 0.24 -0.06 0.36 0c 0.12 0.09 0.57 0.6 0.96 1.11c 1.77 2.34 3.21 5.85 3.57 8.73c 0.21 1.56 0.03 3.27 -0.45 4.86c -0.69 2.31 -1.92 4.47 -4.23 7.44c -0.3 0.39 -0.57 0.72 -0.6 0.75c -0.03 0.06 0 0.15 0.18 0.78c 0.54 1.68 1.38 4.44 1.68 5.49l 0.09 0.42l 0.39 0c 1.47 0.09 2.76 0.51 3.96 1.29c 1.83 1.23 3.06 3.21 3.39 5.52c 0.09 0.45 0.12 1.29 0.06 1.74c -0.09 1.02 -0.33 1.83 -0.75 2.73c -0.84 1.71 -2.28 3.06 -4.02 3.72l -0.33 0.12l 0.03 1.26c 0 1.74 -0.06 3.63 -0.21 4.62c -0.45 3.06 -2.19 5.49 -4.47 6.21c -0.57 0.18 -0.9 0.21 -1.59 0.21c -0.69 0 -1.02 -0.03 -1.65 -0.21c -1.14 -0.27 -2.13 -0.84 -2.94 -1.65c -0.99 -0.99 -1.56 -2.16 -1.71 -3.54c -0.09 -0.81 0.06 -1.53 0.45 -2.13c 0.63 -0.99 1.83 -1.56 3 -1.53c 1.5 0.09 2.64 1.32 2.73 2.94c 0.06 1.47 -0.93 2.7 -2.37 2.97c -0.45 0.06 -0.84 0.03 -1.29 -0.09l -0.21 -0.09l 0.09 0.12c 0.39 0.54 0.78 0.93 1.32 1.26c 1.35 0.87 3.06 1.02 4.35 0.36c 1.44 -0.72 2.52 -2.28 2.97 -4.35c 0.15 -0.66 0.24 -1.5 0.3 -3.03c 0.03 -0.84 0.03 -2.94 0 -3c -0.03 0 -0.18 0 -0.36 0.03c -0.66 0.12 -0.99 0.12 -1.83 0.12c -1.05 0 -1.71 -0.06 -2.61 -0.3c -4.02 -0.99 -7.11 -4.35 -7.8 -8.46c -0.12 -0.66 -0.12 -0.99 -0.12 -1.83c 0 -0.84 0 -1.14 0.15 -1.92c 0.36 -2.28 1.41 -4.62 3.3 -7.29l 2.79 -3.6c 0.54 -0.66 0.96 -1.2 0.96 -1.23c 0 -0.03 -0.09 -0.33 -0.18 -0.69c -0.96 -3.21 -1.41 -5.28 -1.59 -7.68c -0.12 -1.38 -0.15 -3.09 -0.06 -3.96c 0.33 -2.67 1.38 -5.07 3.12 -7.08c 0.36 -0.42 0.99 -1.05 1.17 -1.14zm 2.01 4.71c -0.15 -0.3 -0.3 -0.54 -0.3 -0.54c -0.03 0 -0.18 0.09 -0.3 0.21c -2.4 1.74 -3.87 4.2 -4.26 7.11c -0.06 0.54 -0.06 1.41 -0.03 1.89c 0.09 1.29 0.48 3.12 1.08 5.22c 0.15 0.42 0.24 0.78 0.24 0.81c 0 0.03 0.84 -1.11 1.23 -1.68c 1.89 -2.73 2.88 -5.07 3.15 -7.53c 0.09 -0.57 0.12 -1.74 0.06 -2.37c -0.09 -1.23 -0.27 -1.92 -0.87 -3.12zm -2.94 20.7c -0.21 -0.72 -0.39 -1.32 -0.42 -1.32c 0 0 -1.2 1.47 -1.86 2.37c -2.79 3.63 -4.02 6.3 -4.35 9.3c -0.03 0.21 -0.03 0.69 -0.03 1.08c 0 0.69 0 0.75 0.06 1.11c 0.12 0.54 0.27 0.99 0.51 1.47c 0.69 1.38 1.83 2.55 3.42 3.42c 0.96 0.54 2.07 0.9 3.21 1.08c 0.78 0.12 2.04 0.12 2.94 -0.03c 0.51 -0.06 0.45 -0.03 0.42 -0.3c -0.24 -3.33 -0.72 -6.33 -1.62 -10.08c -0.09 -0.39 -0.18 -0.75 -0.18 -0.78c -0.03 -0.03 -0.42 0 -0.81 0.09c -0.9 0.18 -1.65 0.57 -2.22 1.14c -0.72 0.72 -1.08 1.65 -1.05 2.64c 0.06 0.96 0.48 1.83 1.23 2.58c 0.36 0.36 0.72 0.63 1.17 0.9c 0.33 0.18 0.36 0.21 0.42 0.33c 0.18 0.42 -0.18 0.9 -0.6 0.87c -0.18 -0.03 -0.84 -0.36 -1.26 -0.63c -0.78 -0.51 -1.38 -1.11 -1.86 -1.83c -1.77 -2.7 -0.99 -6.42 1.71 -8.19c 0.3 -0.21 0.81 -0.48 1.17 -0.63c 0.3 -0.09 1.02 -0.3 1.14 -0.3c 0.06 0 0.09 0 0.09 -0.03c 0.03 -0.03 -0.51 -1.92 -1.23 -4.26zm 3.78 7.41c -0.18 -0.03 -0.36 -0.06 -0.39 -0.06c -0.03 0 0 0.21 0.18 1.02c 0.75 3.18 1.26 6.3 1.5 9.09c 0.06 0.72 0 0.69 0.51 0.42c 0.78 -0.36 1.44 -0.96 1.98 -1.77c 1.08 -1.62 1.2 -3.69 0.3 -5.55c -0.81 -1.62 -2.31 -2.79 -4.08 -3.15z\"></path></g><g class=\"abcjs-staff-extra abcjs-time-signature abcjs-l0 abcjs-m0 abcjs-mm0 abcjs-v0\" fill=\"currentColor\" stroke=\"none\"><path d=\"M 57.691 38.620000000000005c 0.27 -0.09 0.42 -0.12 0.54 -0.03c 0.09 0.06 0.15 0.21 0.15 0.3c -0.03 0.06 -1.92 2.31 -4.23 5.04c -2.31 2.73 -4.23 4.98 -4.26 5.01c -0.03 0.06 0.12 0.06 2.55 0.06l 2.61 0l 0 -2.37c 0 -2.19 0.03 -2.37 0.06 -2.46c 0.03 -0.06 0.21 -0.18 0.57 -0.42c 1.08 -0.72 1.38 -1.08 1.86 -2.16c 0.12 -0.3 0.24 -0.54 0.27 -0.57c 0.12 -0.12 0.39 -0.06 0.45 0.12c 0.06 0.09 0.06 0.57 0.06 3.96l 0 3.9l 1.08 0c 1.05 0 1.11 0 1.2 0.06c 0.24 0.15 0.24 0.54 0 0.69c -0.09 0.06 -0.15 0.06 -1.2 0.06l -1.08 0l 0 0.33c 0 0.57 0.09 1.11 0.3 1.53c 0.36 0.75 0.93 1.17 1.68 1.26c 0.3 0.03 0.39 0.09 0.39 0.3c 0 0.15 -0.03 0.18 -0.09 0.24c -0.06 0.06 -0.09 0.06 -0.48 0.06c -0.42 0 -0.69 -0.03 -2.1 -0.24c -0.9 -0.15 -1.77 -0.15 -2.67 0c -1.41 0.21 -1.68 0.24 -2.1 0.24c -0.39 0 -0.42 0 -0.48 -0.06c -0.06 -0.06 -0.06 -0.09 -0.06 -0.24c 0 -0.21 0.06 -0.27 0.36 -0.3c 0.75 -0.09 1.32 -0.51 1.68 -1.26c 0.21 -0.42 0.3 -0.96 0.3 -1.53l 0 -0.33l -2.7 0c -2.91 0 -2.85 0 -3.09 -0.15c -0.18 -0.12 -0.3 -0.39 -0.27 -0.54c 0.03 -0.06 0.18 -0.24 0.33 -0.45c 0.75 -0.9 1.59 -2.07 2.13 -3.03c 0.33 -0.54 0.84 -1.62 1.05 -2.16c 0.57 -1.41 0.84 -2.64 0.9 -4.05c 0.03 -0.63 0.06 -0.72 0.24 -0.81l 0.12 -0.06l 0.45 0.12c 0.66 0.18 1.02 0.24 1.47 0.27c 0.6 0.03 1.23 -0.09 2.01 -0.33z\"></path><path d=\"M 57.691 54.120000000000005c 0.27 -0.09 0.42 -0.12 0.54 -0.03c 0.09 0.06 0.15 0.21 0.15 0.3c -0.03 0.06 -1.92 2.31 -4.23 5.04c -2.31 2.73 -4.23 4.98 -4.26 5.01c -0.03 0.06 0.12 0.06 2.55 0.06l 2.61 0l 0 -2.37c 0 -2.19 0.03 -2.37 0.06 -2.46c 0.03 -0.06 0.21 -0.18 0.57 -0.42c 1.08 -0.72 1.38 -1.08 1.86 -2.16c 0.12 -0.3 0.24 -0.54 0.27 -0.57c 0.12 -0.12 0.39 -0.06 0.45 0.12c 0.06 0.09 0.06 0.57 0.06 3.96l 0 3.9l 1.08 0c 1.05 0 1.11 0 1.2 0.06c 0.24 0.15 0.24 0.54 0 0.69c -0.09 0.06 -0.15 0.06 -1.2 0.06l -1.08 0l 0 0.33c 0 0.57 0.09 1.11 0.3 1.53c 0.36 0.75 0.93 1.17 1.68 1.26c 0.3 0.03 0.39 0.09 0.39 0.3c 0 0.15 -0.03 0.18 -0.09 0.24c -0.06 0.06 -0.09 0.06 -0.48 0.06c -0.42 0 -0.69 -0.03 -2.1 -0.24c -0.9 -0.15 -1.77 -0.15 -2.67 0c -1.41 0.21 -1.68 0.24 -2.1 0.24c -0.39 0 -0.42 0 -0.48 -0.06c -0.06 -0.06 -0.06 -0.09 -0.06 -0.24c 0 -0.21 0.06 -0.27 0.36 -0.3c 0.75 -0.09 1.32 -0.51 1.68 -1.26c 0.21 -0.42 0.3 -0.96 0.3 -1.53l 0 -0.33l -2.7 0c -2.91 0 -2.85 0 -3.09 -0.15c -0.18 -0.12 -0.3 -0.39 -0.27 -0.54c 0.03 -0.06 0.18 -0.24 0.33 -0.45c 0.75 -0.9 1.59 -2.07 2.13 -3.03c 0.33 -0.54 0.84 -1.62 1.05 -2.16c 0.57 -1.41 0.84 -2.64 0.9 -4.05c 0.03 -0.63 0.06 -0.72 0.24 -0.81l 0.12 -0.06l 0.45 0.12c 0.66 0.18 1.02 0.24 1.47 0.27c 0.6 0.03 1.23 -0.09 2.01 -0.33z\"></path></g><g class=\"abcjs-note abcjs-d0-5 abcjs-p0 abcjs-p2 abcjs-p4 abcjs-l0 abcjs-m0 abcjs-mm0 abcjs-v0 abcjs-n0\" fill=\"currentColor\" stroke=\"none\" data-note=\"0\"><path d=\"M 78.286 72.76c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-1\"></path><path d=\"M 78.286 65.01c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-2\"></path><path d=\"M 78.286 57.260000000000005c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-3\"></path><path d=\"M 81.22 34.19L 81.22 75.52L 80.22 75.52L 80.22 34.19z\" class=\"abcjs-stem\"></path><path d=\"M 68.85 76.46 L 83.22 76.46 L 83.22 77.16 L 68.85 77.16 z\" stroke=\"none\" fill=\"currentColor\" class=\"abcjs-ledger\"></path></g><g class=\"abcjs-note abcjs-d0-5 abcjs-p3 abcjs-p5 abcjs-p7 abcjs-l0 abcjs-m0 abcjs-mm0 abcjs-v0 abcjs-n1\" fill=\"currentColor\" stroke=\"none\" data-note=\"1\"><path d=\"M 138.286 61.135000000000005c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-1\"></path><path d=\"M 138.286 53.385000000000005c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-2\"></path><path d=\"M 138.286 45.635000000000005c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-3\"></path><path d=\"M 141.22 22.56L 141.22 63.89L 140.22 63.89L 140.22 22.56z\" class=\"abcjs-stem\"></path></g><g class=\"abcjs-bar abcjs-l0 abcjs-m0 abcjs-mm0 abcjs-v0\" fill=\"currentColor\" stroke=\"none\" data-measure=\"0\"><path d=\"M 190.85 69.06L 190.85 38.06L 191.45 38.06L 191.45 69.06z\"></path></g><g class=\"abcjs-note abcjs-d0-5 abcjs-p4 abcjs-p6 abcjs-p8 abcjs-l0 abcjs-m1 abcjs-mm1 abcjs-v0 abcjs-n0\" fill=\"currentColor\" stroke=\"none\" data-note=\"2\"><path d=\"M 209.286 57.260000000000005c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-1\"></path><path d=\"M 209.286 49.510000000000005c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-2\"></path><path d=\"M 209.286 41.760000000000005c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-3\"></path><path d=\"M 201.85 88.44L 201.85 47.1L 202.85 47.1L 202.85 88.44z\" class=\"abcjs-stem\"></path></g><g class=\"abcjs-note abcjs-d0-5 abcjs-p0 abcjs-p2 abcjs-p4 abcjs-l0 abcjs-m1 abcjs-mm1 abcjs-v0 abcjs-n1\" fill=\"currentColor\" stroke=\"none\" data-note=\"3\"><path d=\"M 269.286 72.76c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-1\"></path><path d=\"M 269.286 65.01c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-2\"></path><path d=\"M 269.286 57.260000000000005c 0.06 -0.03 0.27 -0.03 0.48 -0.03c 1.05 0 1.71 0.24 2.1 0.81c 0.42 0.6 0.45 1.35 0.18 2.4c -0.42 1.59 -1.14 2.73 -2.16 3.39c -1.41 0.93 -3.18 1.44 -5.4 1.53c -1.17 0.03 -1.89 -0.21 -2.28 -0.81c -0.42 -0.6 -0.45 -1.35 -0.18 -2.4c 0.42 -1.59 1.14 -2.73 2.16 -3.39c 0.63 -0.42 1.23 -0.72 1.98 -0.96c 0.9 -0.3 1.65 -0.42 3.12 -0.54zm 1.29 0.87c -0.27 -0.09 -0.63 -0.12 -0.9 -0.03c -0.72 0.24 -1.53 0.69 -3.27 1.8c -2.34 1.5 -3.3 2.25 -3.57 2.79c -0.36 0.72 -0.06 1.5 0.66 1.77c 0.24 0.12 0.69 0.09 0.99 0c 0.84 -0.3 1.92 -0.93 4.14 -2.37c 1.62 -1.08 2.37 -1.71 2.61 -2.19c 0.36 -0.72 0.06 -1.5 -0.66 -1.77z\" class=\"abcjs-notehead abcjs-chord-pos-3\"></path><path d=\"M 272.22 34.19L 272.22 75.52L 271.22 75.52L 271.22 34.19z\" class=\"abcjs-stem\"></path><path d=\"M 259.85 76.46 L 274.22 76.46 L 274.22 77.16 L 259.85 77.16 z\" stroke=\"none\" fill=\"currentColor\" class=\"abcjs-ledger\"></path></g><g class=\"abcjs-bar abcjs-l0 abcjs-m1 abcjs-mm1 abcjs-v0\" fill=\"currentColor\" stroke=\"none\" data-measure=\"1\"><path d=\"M 321.85 69.06L 321.85 38.06L 322.45 38.06L 322.45 69.06z\"></path><path d=\"M 325.85 69.06L 325.85 38.06L 329.85 38.06L 329.85 69.06z\"></path></g></g></svg>",
|
|
4
|
+
"abcMap": {
|
|
5
|
+
"tempo": 80,
|
|
6
|
+
"notes": [
|
|
7
|
+
{
|
|
8
|
+
"cls": "abcjs-v0 abcjs-mm0 abcjs-n0",
|
|
9
|
+
"measure": 0,
|
|
10
|
+
"pitch": [
|
|
11
|
+
"C4",
|
|
12
|
+
"E4",
|
|
13
|
+
"G4"
|
|
14
|
+
],
|
|
15
|
+
"beat": 0,
|
|
16
|
+
"dur": 2,
|
|
17
|
+
"box": [
|
|
18
|
+
70.85,
|
|
19
|
+
57.23,
|
|
20
|
+
10.37,
|
|
21
|
+
23.63
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"cls": "abcjs-v0 abcjs-mm0 abcjs-n1",
|
|
26
|
+
"measure": 0,
|
|
27
|
+
"pitch": [
|
|
28
|
+
"F4",
|
|
29
|
+
"A4",
|
|
30
|
+
"C5"
|
|
31
|
+
],
|
|
32
|
+
"beat": 2,
|
|
33
|
+
"dur": 2,
|
|
34
|
+
"box": [
|
|
35
|
+
130.85,
|
|
36
|
+
45.6,
|
|
37
|
+
10.37,
|
|
38
|
+
23.63
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"cls": "abcjs-v0 abcjs-mm1 abcjs-n0",
|
|
43
|
+
"measure": 1,
|
|
44
|
+
"pitch": [
|
|
45
|
+
"G4",
|
|
46
|
+
"B4",
|
|
47
|
+
"D5"
|
|
48
|
+
],
|
|
49
|
+
"beat": 0,
|
|
50
|
+
"dur": 2,
|
|
51
|
+
"box": [
|
|
52
|
+
201.85,
|
|
53
|
+
41.73,
|
|
54
|
+
10.37,
|
|
55
|
+
23.63
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"cls": "abcjs-v0 abcjs-mm1 abcjs-n1",
|
|
60
|
+
"measure": 1,
|
|
61
|
+
"pitch": [
|
|
62
|
+
"C4",
|
|
63
|
+
"E4",
|
|
64
|
+
"G4"
|
|
65
|
+
],
|
|
66
|
+
"beat": 2,
|
|
67
|
+
"dur": 2,
|
|
68
|
+
"box": [
|
|
69
|
+
261.85,
|
|
70
|
+
57.23,
|
|
71
|
+
10.37,
|
|
72
|
+
23.63
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"beams": [],
|
|
77
|
+
"arcs": []
|
|
78
|
+
},
|
|
79
|
+
"renderers": {
|
|
80
|
+
"abcjs": {
|
|
81
|
+
"version": "6.7.2",
|
|
82
|
+
"options": {
|
|
83
|
+
"add_classes": true,
|
|
84
|
+
"staffwidth": 520,
|
|
85
|
+
"foregroundColor": "currentColor"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|