MIDI IN -> audio effect plugin Logic pro

New to JUCE trying to build this AU effect plugin to allow me to:

Audio effect that, when inserted on any channel in a DAW, dynamically controls that channel’s volume gate based on external MIDI note events. The plugin listens for MIDI input and triggers its gating behavior based on a designated note (C1, C2… C4, D5) etc…

Bug Description:

  • Audio effect plugin designed to gate audio via MIDI isn’t receiving external MIDI on software instrument/audio tracks in Logic Pro X.
  • Plugin only registers MIDI when using its built-in keyboard; external MIDI (even visible in the MIDI monitor) isn’t passed to the plugin. if i disable the plugin, the MIDI plays the instrument, if i click the keyboard in the plugin, the gate works when i hold the key down

What I’ve Tried:

  • Verified MIDI events with a MIDI monitor in the Environment.
  • Confirmed that disabling the plugin lets the instrument play MIDI normally.
  • Configured Projucer to “Accept MIDI Input” .
  • Overrode isMidiEffect() to return true, forcing MIDI delivery.
  • Debugged processBlock() to log incoming MIDI messages.

if i play the midi keyboard in the audio plugin, it opens the gate perfectly. but the midi being sent to the channel doesn’t open the gate or even show messages receive in the plugin


aM

In Logic, to send MIDI to an effect, it must be a “MIDI-controlled effect”, not a regular effect. It’s inserted into the Instrument slot of a track. Audio is then routed to it through the sidechain.

thank you for your reply.

the end goal is to have 1 midi track that has control over the audio of many audio/software instrument tracks

and each key in that midi track can correspond to the different gate of any of the tracks

so C1 could open the gate of audio track 1 and C2 could open the gate of audio track 2 and C4 could open the gate of software instrument 1

do you think this is possible in logic? or in any DAW for that matter

I only know about Logic, but you should be able to route the MIDI from that one track into the tracks that have the MIDI-controlled FX on them. (Using the Internal MIDI Input option on the track.)

For any audio track that you want to control with this effect you’ll need to have a separate track with the MIDI-controlled FX on it that takes the audio as input through the side chain. So if you want to use your plug-in on all audio tracks, you’ll end up with double the amount of tracks in the project.

Other DAWs will have their own way to route MIDI into FX plug-ins, for better or worse.

really appreciate your insight here. I guess im finally joining the REAPER cult haha