sonolus-d4dj-engine 1.4.5 → 1.5.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.
Binary file
Binary file
@@ -308,11 +308,7 @@ function d4djToLevelData(chart, offset = 0) {
308
308
  ],
309
309
  }));
310
310
  let notes = note(chart);
311
- const sd = Array.from({ length: (Math.max(chart[3][chart[3].length - 1][2], chart[2][chart[2].length - 1]) + offset + 5) * 120 / 16 }, (_, index) => ({
312
- archetype: 'SliderData',
313
- data: [],
314
- }));
315
- data.entities.push(...ts, ...discL, ...discR, ...notes, ...bl, ...sd);
311
+ data.entities.push(...ts, ...discL, ...discR, ...notes, ...bl);
316
312
  return data;
317
313
  }
318
314
  exports.d4djToLevelData = d4djToLevelData;
@@ -119,15 +119,7 @@ function d4cToLevelData(chart, offset = 0) {
119
119
  ],
120
120
  }));
121
121
  let notes = note(chart);
122
- const lastNoteBeat = chart.NoteDataList[chart.NoteDataList.length - 1].Beat;
123
- let lastBlBeat = chart.BarLine.List[chart.BarLine.List.length - 1];
124
- lastBlBeat = typeof lastBlBeat === "number" ? lastBlBeat : lastBlBeat.Beat;
125
- const end = chart.BpmDataList.map((data, i, arr) => 60 / data.Bpm * ((i < arr.length - 1 ? arr[i + 1].Beat : Math.max(lastNoteBeat, lastBlBeat)) - data.Beat)).reduce((a, b) => a + b) + chart.Offset + offset + 5;
126
- const sd = Array.from({ length: end * 120 / 16 }, (_, index) => ({
127
- archetype: 'SliderData',
128
- data: [],
129
- }));
130
- data.entities.push(...bpm, ...ts.flat(), ...notes, ...bl, ...sd);
122
+ data.entities.push(...bpm, ...ts.flat(), ...notes, ...bl);
131
123
  return data;
132
124
  }
133
125
  exports.d4cToLevelData = d4cToLevelData;
package/dist/index.cjs CHANGED
@@ -22,7 +22,7 @@ var convert_cjs_2 = require("./d4c/convert.cjs");
22
22
  Object.defineProperty(exports, "d4cToLevelData", { enumerable: true, get: function () { return convert_cjs_2.d4cToLevelData; } });
23
23
  __exportStar(require("./b34dj/index.cjs"), exports);
24
24
  __exportStar(require("./d4c/index.cjs"), exports);
25
- exports.version = '1.4.5';
25
+ exports.version = '1.5.0';
26
26
  exports.databaseEngineItem = {
27
27
  name: 'd4dj',
28
28
  version: 13,
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@ export { b34djToLevelData, d4djToLevelData } from './b34dj/convert.cjs';
2
2
  export { d4cToLevelData } from './d4c/convert.cjs';
3
3
  export * from './b34dj/index.cjs';
4
4
  export * from './d4c/index.cjs';
5
- export declare const version = "1.4.5";
5
+ export declare const version = "1.5.0";
6
6
  export declare const databaseEngineItem: {
7
7
  readonly name: "d4dj";
8
8
  readonly version: 13;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-d4dj-engine",
3
- "version": "1.4.5",
3
+ "version": "1.5.0",
4
4
  "description": "A recreation of D4DJ Groovy Mix engine in Sonolus.",
5
5
  "type": "module",
6
6
  "author": "Gorengan Hunter",
@@ -33,12 +33,12 @@
33
33
  "build": "tsc -p ./lib && sonolus-cli --build ./play && sonolus-cli --build ./watch && sonolus-cli --build ./preview && sonolus-cli --build ./tutorial && node ./lib/build.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@sonolus/core": "^7.11.0",
36
+ "@sonolus/core": "^7.13.2",
37
37
  "@sonolus/express": "^7.3.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@eslint/js": "^8.57.0",
41
- "@sonolus/sonolus.js": "^9.5.5",
41
+ "@sonolus/sonolus.js": "^9.5.6",
42
42
  "eslint": "^8.57.0",
43
43
  "eslint-config-prettier": "^9.1.0",
44
44
  "prettier": "^3.3.1",