|
@@ -2,6 +2,7 @@ import { reactive } from 'vue';
|
|
|
import tockAndTick from './tockAndTick.json';
|
|
|
import { Howl } from 'howler';
|
|
|
import { initSelectScorePart, setting } from './setting';
|
|
|
+import { beatDesc } from './beat-desc';
|
|
|
|
|
|
const tickData = reactive({
|
|
|
list: [] as number[],
|
|
@@ -95,12 +96,13 @@ export const handleStartTick = async () => {
|
|
|
}
|
|
|
tickData.index = 0;
|
|
|
tickData.beatLengthInMilliseconds = (60 / setting.speed) * 1000;
|
|
|
- let startTime = +new Date();
|
|
|
+ // let startTime = +new Date();
|
|
|
// const allTick: any = [];
|
|
|
- console.log(setting.scorePart, tickData.len);
|
|
|
+ // console.log(setting.scorePart, tickData.len);
|
|
|
for (let i = 0; i < setting.scorePart.length; i++) {
|
|
|
if (tickData.tickEnd) return false;
|
|
|
const temp = setting.scorePart[i];
|
|
|
+ // console.log(temp, 'temp', beatDesc[i.index]);
|
|
|
for (let j = 0; j < temp.length; j++) {
|
|
|
// 提前结束, 直接放回false
|
|
|
if (tickData.tickEnd) return false;
|