From dae17fad876ac33fca7dcd6a37b385be1fbcf4e2 Mon Sep 17 00:00:00 2001 From: Lumi Pakkanen Date: Sun, 16 Jul 2023 16:38:44 +0300 Subject: [PATCH] Import base frequency from Anamark v2 tunings ref #446 --- src/components/ScaleBuilder.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ScaleBuilder.vue b/src/components/ScaleBuilder.vue index 380b9d07..5449b30f 100644 --- a/src/components/ScaleBuilder.vue +++ b/src/components/ScaleBuilder.vue @@ -194,6 +194,9 @@ const exportTextClipboard = ref("Copy this scale's unique URL to clipboard"); async function doImport(importerKey: ImporterKey, event: Event) { const result = await importFile(importerKey, event); emit("update:scaleLines", result.scale.toStrings()); + if (importerKey != "scalascl") { + emit("update:baseFrequency", result.scale.baseFrequency); + } if (result.name !== undefined) { emit("update:scaleName", result.name); }