Skip to content

Commit

Permalink
Change: externally taggedにする
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Oct 31, 2024
1 parent 1260cc0 commit 4193ba3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Sing/SequencerRuler/Presentation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,13 @@ const currentMeasure = computed(() =>
const tempoOrTimeSignatureChanges = computed<TempoOrTimeSignatureChange[]>(
() => {
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,
};
Expand All @@ -351,9 +353,9 @@ const tempoOrTimeSignatureChanges = computed<TempoOrTimeSignatureChange[]>(
]
.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 ?? "";
Expand Down

0 comments on commit 4193ba3

Please sign in to comment.