commit 4b2133557a519872e405033ec551539bbc714f3b
parent 8a3d712ee8099c15d464748215c24338b31a7a91
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Tue, 13 Aug 2024 20:30:35 +0200
add physical midi ports selection
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/doc/changelog.txt b/doc/changelog.txt
@@ -16,6 +16,10 @@ Xenia:
- [Fix] UI not updating when loading DAW preset
+NodalRed2x:
+
+- [Imp] Added physical MIDI port selection to context menu
+
1.3.18
Framework:
diff --git a/source/nord/n2x/n2xJucePlugin/n2xPluginEditorState.cpp b/source/nord/n2x/n2xJucePlugin/n2xPluginEditorState.cpp
@@ -3,6 +3,8 @@
#include "n2xEditor.h"
#include "n2xPluginProcessor.h"
+#include "jucePluginEditorLib/midiPorts.h"
+
#include "synthLib/os.h"
namespace n2xJucePlugin
@@ -32,6 +34,8 @@ namespace n2xJucePlugin
gainMenu.addItem("+12 dB", true, gain == 4, [&p] { p.setOutputGain(4); });
_menu.addSubMenu("Output Gain", gainMenu);
+
+ jucePluginEditorLib::MidiPorts::createMidiPortsMenu(_menu, p.getMidiPorts());
}
bool PluginEditorState::initAdvancedContextMenu(juce::PopupMenu& _menu, const bool _enabled)