I have a simple project that displays midi notes on the GUI (this is my first plugin and the first time with C++).
It works fine in Reaper (win11) but cannot read any midi note from MidiBuffer in Cakewalk by Bandlab (which is the DAW where my plugin is supposed to work).
Shall I tweak something in the code? or in Cakewalk?
Have you tested any of the example plugins that use a MIDI input, e.g. the MIDILogger or AudioPluginDemo projects? If those work, you could look for differences between your Projucer project and the Projucer projects of the working plugins.
In the meantime, you can try out the same change by modifying getBusesLayout on line 338 to
static BusesProperties getBusesLayout()
{
// Live and Cakewalk don't like to load midi-only plugins, so we add an audio output there.
const PluginHostType host;
return host.isAbletonLive() || host.isSonar()
? BusesProperties().withOutput ("out", AudioChannelSet::stereo())
: BusesProperties();
}
The advice in this thread is known to work and I’ve benefitted from it. One additional Cakewalk by Bandlab configuration detail that needs to be set when a Juce MIDI plugin is installed is enabling MIDI inputs and outputs on the host side. It can be done manually but:
Can anyone advise how to enable MIDI inputs and outputs from within the Juce MIDI plugin automatically when the plugin is initialized?