FX with MIDI sidechain
-
@Christoph-Hart Is this feasible?
I need to control my filter plugin with the keyboard notes... -
Apparently, there is a flag in the Projucer called
Wants MIDI inputs
(that is now replaced withPlugin MIDI Input
if I'm right)https://forum.juce.com/t/sidechain-input-with-synth-plugin/19276/2
I tried this with no success:
-
@Christoph-Hart Bumpy bump
I hope there will be a solution. I really need this... -
@Christoph-Hart I don't know what is missing in Hise, because when enabling
Plugin MIDI Input
, the 16 MIDI channels appear in the output of the MIDI track in Ableton Live, but the plugin in the audio track does not react... -
Yes you probably have to change the code in HISE because compiled FX plugins just process the modules in the script FX.
So basically you just need to set this flag in the projucer to setup a FX with MIDI input?
-
@Christoph-Hart So you think it's thinkable to implement the modification in Hise?
Yes I just enabled this flag and this is what I got:
Also, note that the screenshot is an AU plugin, the VST is not recognised by Live when this flag is enabled... -
I think everything is thinkable if you think about it long enough :)
What's worrying is that VST is refusing to load because this will end up being the case in 50% of all hosts.
-
@Christoph-Hart It should be doable regarding the JUCE forum
After some googling time, I found that VST3 can accept MIDI input for FX. MIDI output is not supported though.
So will you try to think to a thinkable solution, or should I better think to never think about it anymore?
-
@Christoph-Hart May I bump gently :)
The development is stuck here, I don't know if I can keep going on this part or if I better have to remove this functionality
But MIDI sidechain is the nerve of this plugin, and the others to come :( -
@ustk I've been keeping my eye on this other thread about sidechaining...
https://forum.hise.audio/topic/2002/multi-input-for-sidechain-ducking
I know that thread is about sidechaining from an audio signal and you want to use midi, but if there is no way around doing it with midi in the end then maybe you could rework your plugin slightly to trigger from an audio channel instead (when the method in the above thread has finally been conquered). It's better than scrapping it completely :)
-
May I bump gently
I'll try something tomorrow.
-
@Christoph-Hart Oh that's great, I can't wait to see it :) Finger crossed :crossed_fingers:
@SteveRiggs Thanks buddy, but unfortunately I don't think this way can lead to a viable solution in my case. Thanks for the shot though ;) -
Guess today's your lucky day:
https://github.com/christophhart/HISE/commit/813d77b0572eed51ddf2afdd6f1c4bb71c8963ff
And an example project:
https://github.com/christophhart/hise_tutorial/tree/master/FXWithMidi
All you need to do is to tick the EnableMidiInputFX box in the project settings in HISE, and it will set all build flags correctly. If this is enabled, the MIDI processors in the root container will be processed so you can react to them with your funky vowel filter.
I've just tested it in the JUCE plugin host, so not sure how many hosts actually support that.
-
@Christoph-Hart Youhou! I'm very grateful Mr Hart! I know you have piles of work at the moment so thanks a lot for doing it so quickly
I tested it and it works smoothly with keys (although I haven't tested the controllers yet)
VST and AU are ok (on macOS at least).
Theoretically, it should work in all major DAWs as the procedure is the same (FX on audio/bus track + a MIDI track feeding the FX) -
@ustk Just rebuilt and checking now myself. Will we be able to get midi in from a specific channel now from the DAW? Or is this just for midi notes? For example, a simple kick drum running on a midi track in Ableton could be the trigger, and then our plugin on a separate audio track routed to it?
-
Trying to work out how a combo box could be added into the UI to pick which midi channel the trigger signal would be coming from...
-
@SteveRiggs said in FX with MIDI sidechain:
@ustk Just rebuilt and checking now myself. Will we be able to get midi in from a specific channel now from the DAW? Or is this just for midi notes? For example, a simple kick drum running on a midi track in Ableton could be the trigger, and then our plugin on a separate audio track routed to it?
Yep it should work ;)
@SteveRiggs said in FX with MIDI sidechain:
Trying to work out how a combo box could be added into the UI to pick which midi channel the trigger signal would be coming from...
Message.getChannel()
in theonNoteOn
callback is what you want
You just have to compare it with the combobox value to authorize or not...
And keepall Channels
selected in the MIDI channel pref
OR
just use the MIDI channel pref :) -
@ustk Badass! That's another one on the list for tomorrow then :) Thanks dude
-
@ustk
hello, I want a snippet to understand what you did if it's possible ... thank you