Skip to content

Commit

Permalink
Update AnalysisView.vue
Browse files Browse the repository at this point in the history
emit value `intervalMatrixIndex` to persist it
  • Loading branch information
inthar-raven authored Nov 29, 2023
1 parent d107470 commit ab8eaa0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/views/AnalysisView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,19 @@ const props = defineProps<{
scale: Scale;
virtualSynth: VirtualSynth;
colorScheme: "light" | "dark";
intervalMatrixIndexing: "zero" | "one";
}>();
const emit = defineEmits([

Check warning on line 22 in src/views/AnalysisView.vue

View workflow job for this annotation

GitHub Actions / build (17.x)

Replace `⏎··"update:intervalMatrixIndexing",⏎` with `"update:intervalMatrixIndexing"`
"update:intervalMatrixIndexing",
]);
const intervalMatrixIndexing = computed({
get: () => props.intervalMatrixIndexing,
set: (newValue: "zero" | "one") => emit("update:intervalMatrixIndexing", newValue),

Check warning on line 28 in src/views/AnalysisView.vue

View workflow job for this annotation

GitHub Actions / build (17.x)

Insert `⏎···`
});
const cellFormat = ref<"best" | "cents" | "decimal">("best");
const intervalMatrixIndexing = ref<"zero" | "one">("zero");
const matrixStartIndex = computed(() => intervalMatrixIndexing.value === "one" ? 1 : 0);

Check warning on line 32 in src/views/AnalysisView.vue

View workflow job for this annotation

GitHub Actions / build (17.x)

Replace `·intervalMatrixIndexing.value·===·"one"·?·1·:·0);·` with `⏎··intervalMatrixIndexing.value·===·"one"·?·1·:·0⏎);`
const trailLongevity = ref(70);
const maxOtonalRoot = ref(16);
Expand Down

0 comments on commit ab8eaa0

Please sign in to comment.