Skip to content

Commit c1b5dc7

Browse files
Moved data generation to a new subfolder.
1 parent 0df8c29 commit c1b5dc7

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

sh/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
2-
deno run --allow-read --allow-write src/chord/generate.js
2+
deno run --allow-read --allow-write src/data/generate.js
33
exit

src/chord/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"use strict";
55

66
//import chordData from "./generated/chords.json";
7-
import chordData from "./generated/chords.json" with {type: "json"};
8-
import qyPlanRawData from "./generated/qyChordPlan.json" with {type: "json"};
7+
import chordData from "../data/generated/chords.json" with {type: "json"};
8+
import qyPlanRawData from "../data/generated/qyChordPlan.json" with {type: "json"};
99

1010
// Chord dictionary
1111

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import DSVParser from "../../libs/rochelle@ltgcgo/dsvParse.mjs";
66
let finalObj = [];
77
let spToId = new Map();
88

9-
for await (let line of DSVParser.parseObjects(0, TextReader.line((await Deno.open("./src/chord/chords.tsv")).readable))) {
9+
for await (let line of DSVParser.parseObjects(0, TextReader.line((await Deno.open("./src/data/chords.tsv")).readable))) {
1010
let tmpObj = {};
1111
if (line.id && line.sp) {
1212
tmpObj.id = parseInt(line.id, 16);
@@ -23,12 +23,12 @@ for await (let line of DSVParser.parseObjects(0, TextReader.line((await Deno.ope
2323

2424
//console.debug(finalObj);
2525

26-
await Deno.writeTextFile("./src/chord/generated/chords.json", JSON.stringify(finalObj));
26+
await Deno.writeTextFile("./src/data/generated/chords.json", JSON.stringify(finalObj));
2727

2828
//let planSet1 = new Set(), planSet2 = new Set();
2929
let qyPlan = [];
3030

31-
for await (let line of DSVParser.parseObjects(0, TextReader.line((await Deno.open("./src/chord/qyChordPlan.tsv")).readable))) {
31+
for await (let line of DSVParser.parseObjects(0, TextReader.line((await Deno.open("./src/data/qyChordPlan.tsv")).readable))) {
3232
let plan = [spToId.get(line.chord), `m${line.main ?? ""}`];
3333
if (line.main) {
3434
//planSet1.add(line.main);
@@ -40,4 +40,4 @@ for await (let line of DSVParser.parseObjects(0, TextReader.line((await Deno.ope
4040
qyPlan.push(plan);
4141
};
4242
//console.debug(planSet1, planSet2);
43-
await Deno.writeTextFile("./src/chord/generated/qyChordPlan.json", JSON.stringify(qyPlan));
43+
await Deno.writeTextFile("./src/data/generated/qyChordPlan.json", JSON.stringify(qyPlan));

src/state/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,7 @@ let OctaviaDevice = class OctaviaDevice extends CustomEventSource {
33253325
// Sequencer/Implementation-specific meta event
33263326
// No refactoring needed.
33273327
upThis.#metaSeq.default = function (seq) {
3328-
console.warn(`Unrecognized implementation-specific byte sequence: ${bufferToDHex(msg)}\n%o`, seq);
3328+
console.warn(`Unrecognized implementation-specific byte sequence: ${bufferToDHex(seq)}\n%o`, seq);
33293329
};
33303330
upThis.#metaSeq.add([67, 0, 1], (msg, track) => {
33313331
// XGworks port assign

0 commit comments

Comments
 (0)