From 8cab7dd22a590a4f632c0691fb8c823b5e12cfd4 Mon Sep 17 00:00:00 2001
From: paradajz <2544094+paradajz@users.noreply.github.com>
Date: Fri, 15 Mar 2024 07:24:15 +0100
Subject: [PATCH] add option to enable/disable preset change with program
change in
---
src/definitions/block/global/GlobalForm.vue | 6 ++++++
src/definitions/block/global/global.ts | 10 ++++++++++
2 files changed, 16 insertions(+)
diff --git a/src/definitions/block/global/GlobalForm.vue b/src/definitions/block/global/GlobalForm.vue
index 5e31cd3..46e7cc4 100644
--- a/src/definitions/block/global/GlobalForm.vue
+++ b/src/definitions/block/global/GlobalForm.vue
@@ -9,6 +9,12 @@
:field-definition="sections.DisableForcedValueRefreshAfterPresetChange"
@modified="onSettingChange"
/>
+
= {
label: "Disable forced value refresh after preset change",
helpText: `If this option isn't enabled, all components will resend their current values once the preset changes.`,
},
+ EnablePresetChangeWithProgramChangeIn: {
+ block: Block.Global,
+ key: "enablePresetChangeWithProgramChangeIn",
+ type: SectionType.Setting,
+ section: 2,
+ settingIndex: 3,
+ component: FormInputComponent.Toggle,
+ label: "Enable preset change with MIDI Program Change In",
+ helpText: `When enabled, upon receiving MIDI Program Change message (on any interface and any channel) the board will change the preset to cooresponding program change value.`,
+ },
ActivePreset: {
block: Block.Global,
key: "activePreset",