From 0e34b8f2d6b11c6e975c4fe32ebb020c167d0ec0 Mon Sep 17 00:00:00 2001 From: sdercolin Date: Wed, 20 Dec 2023 00:32:35 +0900 Subject: [PATCH] Fix project zooming --- src/jsMain/kotlin/process/ProjectZooming.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsMain/kotlin/process/ProjectZooming.kt b/src/jsMain/kotlin/process/ProjectZooming.kt index 7d50b581..5acc5a43 100644 --- a/src/jsMain/kotlin/process/ProjectZooming.kt +++ b/src/jsMain/kotlin/process/ProjectZooming.kt @@ -20,7 +20,7 @@ fun Project.zoom(factor: Double): Project { it.copy(tickPosition = (it.tickPosition * factor).roundToLong(), bpm = it.bpm * factor) } val timeSignatures = timeSignatures - .map { it.copy(measurePosition = (measurePrefix * factor).roundToInt()) } + .map { it.copy(measurePosition = (it.measurePosition * factor).roundToInt()) } .fold(listOf()) { acc, timeSignature -> if (acc.isEmpty()) { listOf(timeSignature)