@onjmin/dtm 0.1.73 → 0.1.74
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/dist/index.js +7 -4
- package/dist/index.mjs +7 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -271,7 +271,7 @@ async function buildNameToKeyMapping() {
|
|
|
271
271
|
}
|
|
272
272
|
var GM_INSTRUMENT_NAMES = FONT_NAME_SURIKOV.trim().split("\n").map((line) => line.slice(line.indexOf(" ") + 1));
|
|
273
273
|
|
|
274
|
-
// node_modules/.pnpm/@onjmin+chord-parser@1.0.
|
|
274
|
+
// node_modules/.pnpm/@onjmin+chord-parser@1.0.4/node_modules/@onjmin/chord-parser/dist/index.mjs
|
|
275
275
|
var SHARP_NAMES = [
|
|
276
276
|
"C",
|
|
277
277
|
"C#",
|
|
@@ -480,8 +480,11 @@ var parsePitch = (input, output) => {
|
|
|
480
480
|
const pitch = pitchMatcher.parse(input);
|
|
481
481
|
if (pitch === null) err(input, "Not found pitch");
|
|
482
482
|
output.pitch = pitch;
|
|
483
|
-
|
|
484
|
-
|
|
483
|
+
for (let i = 0; i < 2; i++) {
|
|
484
|
+
const half = parseHalf(input, true);
|
|
485
|
+
if (half === null) break;
|
|
486
|
+
output.pitch += half;
|
|
487
|
+
}
|
|
485
488
|
return parseBase(input, output);
|
|
486
489
|
};
|
|
487
490
|
var MAJOR = [0, 4, 7];
|
|
@@ -6981,7 +6984,7 @@ var parseToneMeta = (chords) => {
|
|
|
6981
6984
|
return m ? m[1].toLowerCase() : null;
|
|
6982
6985
|
};
|
|
6983
6986
|
var parseMetronomeMeta = (chords) => {
|
|
6984
|
-
return
|
|
6987
|
+
return !/^#\s*metronome\s*=\s*off\s*$/im.test(chords);
|
|
6985
6988
|
};
|
|
6986
6989
|
var _nameToKeyCache = null;
|
|
6987
6990
|
var getNameToKey = async () => {
|
package/dist/index.mjs
CHANGED
|
@@ -148,7 +148,7 @@ async function buildNameToKeyMapping() {
|
|
|
148
148
|
}
|
|
149
149
|
var GM_INSTRUMENT_NAMES = FONT_NAME_SURIKOV.trim().split("\n").map((line) => line.slice(line.indexOf(" ") + 1));
|
|
150
150
|
|
|
151
|
-
// node_modules/.pnpm/@onjmin+chord-parser@1.0.
|
|
151
|
+
// node_modules/.pnpm/@onjmin+chord-parser@1.0.4/node_modules/@onjmin/chord-parser/dist/index.mjs
|
|
152
152
|
var SHARP_NAMES = [
|
|
153
153
|
"C",
|
|
154
154
|
"C#",
|
|
@@ -357,8 +357,11 @@ var parsePitch = (input, output) => {
|
|
|
357
357
|
const pitch = pitchMatcher.parse(input);
|
|
358
358
|
if (pitch === null) err(input, "Not found pitch");
|
|
359
359
|
output.pitch = pitch;
|
|
360
|
-
|
|
361
|
-
|
|
360
|
+
for (let i = 0; i < 2; i++) {
|
|
361
|
+
const half = parseHalf(input, true);
|
|
362
|
+
if (half === null) break;
|
|
363
|
+
output.pitch += half;
|
|
364
|
+
}
|
|
362
365
|
return parseBase(input, output);
|
|
363
366
|
};
|
|
364
367
|
var MAJOR = [0, 4, 7];
|
|
@@ -6858,7 +6861,7 @@ var parseToneMeta = (chords) => {
|
|
|
6858
6861
|
return m ? m[1].toLowerCase() : null;
|
|
6859
6862
|
};
|
|
6860
6863
|
var parseMetronomeMeta = (chords) => {
|
|
6861
|
-
return
|
|
6864
|
+
return !/^#\s*metronome\s*=\s*off\s*$/im.test(chords);
|
|
6862
6865
|
};
|
|
6863
6866
|
var _nameToKeyCache = null;
|
|
6864
6867
|
var getNameToKey = async () => {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "onjmin",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "@onjmin/dtm",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.74",
|
|
6
6
|
"description": "MMLを中間言語に用いた、モバイルファーストなDAW / ピアノロール打ち込みコンポーネント",
|
|
7
7
|
"homepage": "https://onjmin.github.io/dtm",
|
|
8
8
|
"repository": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"typescript": "5.8.3"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@onjmin/chord-parser": "1.0.
|
|
57
|
+
"@onjmin/chord-parser": "1.0.4",
|
|
58
58
|
"@onjmin/koe": "1.0.4",
|
|
59
59
|
"midi-json-parser": "8.1.74"
|
|
60
60
|
},
|