From 4193ba3b49be0b3a3ca8ec2875259e70e6640d04 Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Thu, 31 Oct 2024 18:32:08 +0900 Subject: [PATCH] =?UTF-8?q?Change:=20externally=20tagged=E3=81=AB=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sing/SequencerRuler/Presentation.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Sing/SequencerRuler/Presentation.vue b/src/components/Sing/SequencerRuler/Presentation.vue index 1bc3823b93..6865330392 100644 --- a/src/components/Sing/SequencerRuler/Presentation.vue +++ b/src/components/Sing/SequencerRuler/Presentation.vue @@ -329,11 +329,13 @@ const currentMeasure = computed(() => const tempoOrTimeSignatureChanges = computed( () => { const timeSignaturesWithTicks = tsPositions.value.map((tsPosition, i) => ({ + type: "timeSignature" as const, position: tsPosition, timeSignature: props.timeSignatures[i], })); const tempos = props.tempos.map((tempo) => { return { + type: "tempo" as const, position: tempo.position, tempo, }; @@ -351,9 +353,9 @@ const tempoOrTimeSignatureChanges = computed( ] .toSorted((a, b) => a[0] - b[0]) .map(([tick, items]) => { - const tempo = items.find((item) => "tempo" in item)?.tempo; + const tempo = items.find((item) => item.type === "tempo")?.tempo; const timeSignature = items.find( - (item) => "timeSignature" in item, + (item) => item.type === "timeSignature", )?.timeSignature; const tempoText = tempo?.bpm ?? "";