|
@@ -79,7 +79,7 @@ const formatTimes = () => {
|
|
|
const rate = runtime.speed / detailState.baseSpeed //1
|
|
|
const start = difftime + (item.sourceRelativeTime || item.relativeTime) - starTime
|
|
|
const end = difftime + (item.sourceRelaEndtime || item.relaEndtime) - starTime
|
|
|
- console.log(start, end , starTime)
|
|
|
+ console.log(start, end, starTime)
|
|
|
const isStaccato =
|
|
|
typeof note.voiceEntry.isStaccato === 'function' ? note.voiceEntry.isStaccato() : note.voiceEntry.isStaccato
|
|
|
const noteRate = isStaccato ? 0.5 : 1
|
|
@@ -102,7 +102,7 @@ const formatTimes = () => {
|
|
|
if (note.noteElement.isRestFlag && !!note.stave && !!nextNote && nextNote.noteElement.isRestFlag) {
|
|
|
skip = true
|
|
|
}
|
|
|
- if (note.measureOpenIndex != recordMeasure){
|
|
|
+ if (note.measureOpenIndex != recordMeasure) {
|
|
|
measureIndex++
|
|
|
recordMeasure = note.measureOpenIndex
|
|
|
}
|
|
@@ -114,7 +114,7 @@ const formatTimes = () => {
|
|
|
nextFrequency: formatPitch(item.noteElement?.pitch?.nextFrequency),
|
|
|
prevFrequency: formatPitch(item.noteElement?.pitch?.prevFrequency),
|
|
|
// 重复的情况index会自然累加,render的index是谱面渲染的index
|
|
|
- measureIndex: measureIndex,//note.measureOpenIndex,
|
|
|
+ measureIndex: measureIndex, //note.measureOpenIndex,
|
|
|
measureRenderIndex: note.noteElement.sourceMeasure.measureListIndex,
|
|
|
dontEvaluating: ListenMode || dontEvaluatingMode || item.skipMode,
|
|
|
musicalNotesIndex: index, //item.i,
|
|
@@ -281,7 +281,7 @@ const timeupdate = () => {
|
|
|
console.log('第一次播放时间', nowTime)
|
|
|
// synced = true
|
|
|
let time = runtime.audiosInstance?.audios[playUrl.value].currentTime
|
|
|
- if (unitTestData.isSelectMeasureMode){
|
|
|
+ if (unitTestData.isSelectMeasureMode) {
|
|
|
time = time - detailState.section[0].time
|
|
|
}
|
|
|
console.log('已播放时长: ', time * 1000)
|
|
@@ -553,7 +553,10 @@ export default defineComponent({
|
|
|
<Transition name="finish">
|
|
|
{startButtonShow.value && (
|
|
|
<div
|
|
|
- style={{ backgroundImage: `url(${iconEvaluatingStart})` }}
|
|
|
+ style={{
|
|
|
+ backgroundImage: `url(${iconEvaluatingStart})`,
|
|
|
+ 'transform': detailState.isSpecialShapedScreen ? `translateX(${detailState.notchHeight / 4}px)` : '',
|
|
|
+ }}
|
|
|
class={[styles.evaluatStartBtn]}
|
|
|
onClick={() => {
|
|
|
setPlayer()
|