Disable traces of experimental MIDI UI.

This commit is contained in:
Robin E. R. Davies
2025-07-20 11:52:26 -04:00
parent 43e067fb6f
commit 8bee485c9f
7 changed files with 28 additions and 16 deletions
+5
View File
@@ -24,6 +24,11 @@ export enum MidiDeviceSelection {
DeviceList = 2
}
// This feature is not yet completely implemented.
export const midiChannelBindingControlFeatureEnabled: boolean = false; // set to true to enable the midi channel binding control in the plugin control view.
export default class MidiChannelBinding {
deserialize(input: any) : MidiChannelBinding {
this.deviceSelection = input.deviceSelection;
+2 -1
View File
@@ -43,6 +43,7 @@ import {
} from './Pedalboard';
import MidiIcon from './svg/ic_midi.svg?react';
import { midiChannelBindingControlFeatureEnabled } from './MidiChannelBinding';
const START_CONTROL = Pedalboard.START_CONTROL;
@@ -995,7 +996,7 @@ withStyles(
const classes = withStyles.getClasses(this.props);
return (
<div className={hasBorder ? classes.iconFrame : classes.borderlessIconFrame} onContextMenu={(e) => { e.preventDefault(); }}>
{hasMidiConnector && (
{hasMidiConnector && midiChannelBindingControlFeatureEnabled && (
<div className={classes.midiConnectorDecoration} >
<MidiIcon style={{ width: 16, height: 16, fill: this.props.theme.palette.text.secondary }} />
</div>
+4 -2
View File
@@ -27,6 +27,8 @@ import AutoZoom from './AutoZoom';
import ModGuiHost from './ModGuiHost';
import {midiChannelBindingControlFeatureEnabled} from './MidiChannelBinding';
import { withStyles } from "tss-react/mui";
import { PiPedalModel, PiPedalModelFactory } from './PiPedalModel';
import { UiPlugin, UiControl, UiFileProperty, UiFrequencyPlot, ScalePoint } from './Lv2Plugin';
@@ -762,7 +764,7 @@ const PluginControlView =
makeIoPluginInfo("Output", Pedalboard.END_PEDALBOARD_ITEM_URI);
midiBindingControl(pedalboardItem: PedalboardItem): ReactNode {
if (!pedalboardItem.midiChannelBinding) {
if ((!pedalboardItem.midiChannelBinding) || (midiChannelBindingControlFeatureEnabled === false)) {
return false;
}
return (
@@ -890,7 +892,7 @@ const PluginControlView =
pedalboardItem.midiChannelBinding = MidiChannelBinding.CreateMissingValue();
}
if (pedalboardItem.midiChannelBinding) {
if (pedalboardItem.midiChannelBinding && midiChannelBindingControlFeatureEnabled) {
nodes.push(this.midiBindingControl(pedalboardItem));
}
return (