commit a0fb989ccf963cb4da18af24a229b2f1c9c60715
parent 951ccf44917a881709b8615e72c971c353d6000e
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Thu, 8 Aug 2024 18:43:25 +0200
added support for physical midi ports
Diffstat:
4 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/doc/changelog.txt b/doc/changelog.txt
@@ -2,6 +2,10 @@ Release Notes
1.3.18
+Xenia:
+
+- [Fix] Physical midi in/out port selectors didn't work
+
1.3.17 (2024.08.04)
Framework:
diff --git a/source/xtJucePlugin/skins/xtDefault/xtDefault.json b/source/xtJucePlugin/skins/xtDefault/xtDefault.json
@@ -6298,7 +6298,7 @@
}
},
{
- "name" : "dropdown",
+ "name" : "MidiIn",
"combobox" : {
"offsetL" : "15",
"offsetT" : "1",
@@ -6317,7 +6317,7 @@
}
},
{
- "name" : "dropdown",
+ "name" : "MidiOut",
"combobox" : {
"offsetL" : "15",
"offsetT" : "1",
diff --git a/source/xtJucePlugin/xtEditor.cpp b/source/xtJucePlugin/xtEditor.cpp
@@ -10,6 +10,8 @@
#include "xtPatchManager.h"
#include "xtWaveEditor.h"
+#include "jucePluginEditorLib/midiPorts.h"
+
#include "jucePluginLib/parameterbinding.h"
namespace xtJucePlugin
@@ -119,6 +121,8 @@ namespace xtJucePlugin
auto* waveEditorButtonParent = findComponent("waveEditorButtonParent");
waveEditorButtonParent->setVisible(false);
#endif
+
+ m_midiPorts.reset(new jucePluginEditorLib::MidiPorts(*this, getProcessor()));
}
Editor::~Editor()
diff --git a/source/xtJucePlugin/xtEditor.h b/source/xtJucePlugin/xtEditor.h
@@ -11,6 +11,7 @@ class Controller;
namespace jucePluginEditorLib
{
+ class MidiPorts;
class FocusedParameter;
class Processor;
}
@@ -62,6 +63,8 @@ namespace xtJucePlugin
std::unique_ptr<FocusedParameter> m_focusedParameter;
std::unique_ptr<FrontPanel> m_frontPanel;
std::unique_ptr<Parts> m_parts;
+ std::unique_ptr<jucePluginEditorLib::MidiPorts> m_midiPorts;
+
WaveEditor* m_waveEditor = nullptr;
pluginLib::EventListener<bool> m_playModeChangeListener;