VST3 and MIDI CC pitfall

SDK for VST 3 audio plug-in and host development.
Dewdman42
Posts: 13
Joined: Sun Dec 30, 2018 7:32 pm

Re: VST3 and MIDI CC pitfall

Post by Dewdman42 » Fri Jan 17, 2020 5:45 pm

Studio one also supports au but not aumfx yet.

Windows users are completely subject to vst rules

Dewdman42
Posts: 13
Joined: Sun Dec 30, 2018 7:32 pm

Re: VST3 and MIDI CC pitfall

Post by Dewdman42 » Fri Jan 17, 2020 6:37 pm

Also it would appear that cubase itself may not be using note expressions under the covers to handle multiple expression map articulations on the same timestamp. So even cubase is missing this problem, much less all other hosts.

In order to make everyone happy, all hosts need to detect cc-note-cc-note sequences on the same timestamp and convert that to the right series of note expressions and notes before calling back to the vst3 plugin. Trying to use parameters for that will lose the sequence. So all hosts including cubase would need to detect that and handle it with internal note expressions instead of parameters.

Likewise all vst3 plugins everywhere need to be looking for note expressions which not all are. But they should be anyway before shipping a vst3 plugin.

As noted earlier, cubase expression maps are unable to resolve this problem either. Poly articulation chords are impossible with cc keyswitches in the instrument.

Dewdman42
Posts: 13
Joined: Sun Dec 30, 2018 7:32 pm

Re: VST3 and MIDI CC pitfall

Post by Dewdman42 » Sun Jan 26, 2020 12:53 am

So i guess one way to work around this the VST3- way, would be to build midi processing into a plugin which also sub-hosts another VST3 instrument plugin from inside my plugin. That way I can do any kind of midi processing I want and send it directly to the instrument rather then trying to send out midi back to the DAW to do it.

Anyone know if there is any good hosting example code out there, particularly for hosting an instrument plugin from within another instrument plugin?

Chris T
Posts: 8
Joined: Mon Jan 27, 2020 11:57 am

Re: VST3 and MIDI CC pitfall

Post by Chris T » Wed Jan 29, 2020 12:32 pm

Hey,

am I getting this right? VST3 is not supporting CC messages? I just started developing aVSTi modifying the Again example. Evervthing worked well so far until I wanted to include the damper pedal. I figured that in the eventList there are only noteOn and noteOff messages. Pedals and controller are missing. So how do I get the pedal message? I hope that I am just to blind to see. How does an instrument work without CC?


Arne Scheffler wrote: ↑Fri Jan 17, 2020 12:04 pm
your frustration comes from the misunderstanding that you can build MIDI plug-ins with VST. VST describes an audio plugin API.

A VSTi has at least a midi input. Is that not supported by VST3?

Thanks for your help!
Cheers
Chris

Arne Scheffler
Posts: 315
Joined: Mon Jun 20, 2016 7:53 am

Re: VST3 and MIDI CC pitfall

Post by Arne Scheffler » Wed Jan 29, 2020 12:40 pm

Hi Chris,
in VST3 an instrument declares all its changeable properties via parameters. In your case, you create a parameter for the damper pedal and you can use IMidiMapping to tell the host that this parameter should map to the damper pedal MIDI control change message. The host will then translate the MIDI CC message to a parameter change and send it to your audio processor.

Cheers,
Arne

Chris T
Posts: 8
Joined: Mon Jan 27, 2020 11:57 am

Re: VST3 and MIDI CC pitfall

Post by Chris T » Wed Jan 29, 2020 1:22 pm

Thanks Arne. Is there a simple example showing how to to this? Thanks a lot..

ygrabit
Posts: 143
Joined: Fri Jun 17, 2016 7:52 am
Location: Hamburg

Re: VST3 and MIDI CC pitfall

Post by ygrabit » Wed Jan 29, 2020 2:22 pm

You could check the examples:
  • public.sdk/samples/vst/again/source/againcontroller.h
    or
  • public.sdk/samples/vst/note_expression_synth/source/note_expression_synth_controller.h
which supports IMidiMapping interface.

Cheers
YVan Grabit

ResonantMind
Posts: 6
Joined: Sun Apr 28, 2019 8:31 pm

Re: VST3 and MIDI CC pitfall

Post by ResonantMind » Fri Jan 31, 2020 6:55 pm

Arne Scheffler wrote:
Fri Jan 17, 2020 4:48 pm
For

Does this mean that GRM Tools will not be able to progress their plugin development beyond VST2.4?

MIDI is a foundation aspect of GRM Tools and what they do - they could not exist without MIDI input - there is an entire experimental music and sound design community based around GRM tools and live performance manipulation using MIDI.

https://inagrm.com/en/store

Image

Post Reply