From 3a5917e8efadd6f9825455faaa6fd2c6292e4d95 Mon Sep 17 00:00:00 2001 From: Lumi Pakkanen Date: Tue, 2 Jan 2024 21:47:43 +0200 Subject: [PATCH] Use pinia to manage app state Fix a bug where deactivated channel messages were passed to MIDI out from MIDI in. ref #367 --- src/App.vue | 522 +++++------------- src/components/ScaleBuilder.vue | 228 ++++---- .../modals/generation/HistoricalScale.vue | 6 +- src/stores/midi.ts | 22 + src/stores/state.ts | 236 ++++++++ src/views/AnalysisView.vue | 35 +- src/views/LatticeView.vue | 17 +- src/views/MidiView.vue | 83 ++- src/views/NotFoundView.vue | 53 +- src/views/PreferencesView.vue | 78 +-- src/views/ScaleView.vue | 45 +- src/views/SynthView.vue | 99 +--- src/views/VirtualKeyboardView.vue | 41 +- src/views/VirtualQwerty.vue | 52 +- 14 files changed, 640 insertions(+), 877 deletions(-) create mode 100644 src/stores/midi.ts create mode 100644 src/stores/state.ts diff --git a/src/App.vue b/src/App.vue index 49371c5c..c3ce5d5c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,141 +1,22 @@