Skip to content

Commit

Permalink
add option to enable/disable preset change with program change in
Browse files Browse the repository at this point in the history
  • Loading branch information
paradajz committed Mar 15, 2024
1 parent 7efd589 commit 8cab7dd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/definitions/block/global/GlobalForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
:field-definition="sections.DisableForcedValueRefreshAfterPresetChange"
@modified="onSettingChange"
/>
<FormField
v-if="showField(sections.EnablePresetChangeWithProgramChangeIn)"
:value="form.enablePresetChangeWithProgramChangeIn"
:field-definition="sections.EnablePresetChangeWithProgramChangeIn"
@modified="onSettingChange"
/>
<FormField
v-if="showField(sections.PreservePresetState)"
class="col-span-2"
Expand Down
10 changes: 10 additions & 0 deletions src/definitions/block/global/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ const sections: Dictionary<ISectionDefinition> = {
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",
Expand Down

0 comments on commit 8cab7dd

Please sign in to comment.