# MPE VST3 issue

**URL:** <https://forum.juce.com/t/mpe-vst3-issue/31035>\
**Category:** General JUCE discussion\
**Created:** [December 28, 2018, 12:17pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035 "2018-12-28T12:17:37Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [December 28, 2018, 12:17pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/1 "2018-12-28T12:17:37Z")

</div>

Hi guys,

I cannot get MPE to work fine with the VST3 plugin format.  
There are no problems with MPE when using AU or VST2.

I have implemented the AudioProcessor::supportsMPE method to return true.

We have our own host for testing our plugin but when I send MPE pressure (midi description = “channel pressure”) this is received in the plugin as “aftertouch”. AU and VST2 works fine with our own host.  
When I test this with Tracktion 7.2.1, the channel pressure message is filtered by tracktion, and so is the timbre MPE message. No problems here with AU, didn’t try VST2 yet.

It might be a problem with our host, but I don’t have any problems with AU or VST2.  
However, I am still looking for a good host to test MPE ;).

Thanks in advance,  
Jelle

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [January 15, 2019, 1:50pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/2 "2019-01-15T13:50:10Z")

</div>

We still haven’t found any solution.  
Unfortunately, we don’t have a VST2 license so we really need clarification about this soon for a plugin we would like to release.

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [January 15, 2019, 2:10pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/3 "2019-01-15T14:10:16Z")

</div>

I don’t think Tracktion 7 has MPE support.  
Try Waveform 9? (That does have proper MPE support)

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [January 15, 2019, 9:01pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/4 "2019-01-15T21:01:43Z")

</div>

Thanks David, I tried Waveform 9 but without success.  
MPE pressure still comes into our plugin as **aftertouch**. So that doesn’t work because the `MPEInstrument::processNextMidiEvent` handles only **channel pressure**. In waveform, the midi clip “MIDI Channel Mode” is set to MPE.  
We use the latest JUCE modules and projucer 5.4.1.

Maybe it matters that we disabled `JUCE_VST3_CAN_REPLACE_VST2`, because we couldn’t compile when enabling it (some VST2 stuff was missing).

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [January 16, 2019, 1:21pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/5 "2019-01-16T13:21:18Z")

</div>

Are you sure?  
How are you adding the MPE note and expression data? By hand or using a Seaboard etc?

MPE data should get recorded to “Note Expression”, there’s a setting for this on the MIDI input device. These are tied to individual notes and can be changed via the floating editor.

I’ve double checked the code for this and there’s nothing that is creating aftertouch messages unless you specifically add them to the MIDI list. Maybe you’re using a controller that’s creating them?

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [January 16, 2019, 4:42pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/6 "2019-01-16T16:42:39Z")

</div>

FYI I think the problem here is a mis-match in `juce_VST3Common.h` between `toEventList` and `toMidiBuffer`:

```auto
static void toMidiBuffer (MidiBuffer& result, Steinberg::Vst::IEventList& eventList)
{
    //...
                case Steinberg::Vst::Event::kPolyPressureEvent:
                        result.addEvent (MidiMessage::aftertouchChange (createSafeChannel (e.polyPressure.channel),
                                                                        createSafeNote (e.polyPressure.pitch),
                                                                        denormaliseToMidiValue (e.polyPressure.pressure)),
                                         e.sampleOffset);
    
}

```

and

```auto
static void toEventList (Steinberg::Vst::IEventList& result, MidiBuffer& midiBuffer,
                         Steinberg::Vst::IParameterChanges* parameterChanges = nullptr,
                         Steinberg::Vst::IMidiMapping* midiMapping = nullptr)
{
    //...
            else if (msg.isChannelPressure())
            {
                e.type = Steinberg::Vst::Event::kPolyPressureEvent;
                e.polyPressure.channel = createSafeChannel (msg.getChannel());
                e.polyPressure.pitch = createSafeNote (msg.getNoteNumber());
                e.polyPressure.pressure = normaliseMidiValue (msg.getChannelPressureValue());
            }

}

```

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [January 16, 2019, 4:45pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/7 "2019-01-16T16:45:12Z")

</div>

Because it works fine with AU, I am sure that I send correct data.

In juce\_VST3Common.h in toMidiBuffer in  
`case Steinberg::Vst::Event::kPolyPressureEvent:`  
if I change this:  
`result.addEvent (MidiMessage::aftertouchChange`  
to  
`result.addEvent (MidiMessage::channelPressureChange`

then it works fine.

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [January 17, 2019, 9:07am UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/8 "2019-01-17T09:07:54Z")

</div>

Can I expect this fix to be pushed soon to the juce developer branch?

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [January 18, 2019, 9:44am UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/9 "2019-01-18T09:44:24Z")

</div>

I made a PR myself -\> [https://github.com/WeAreROLI/JUCE/pull/467](https://github.com/WeAreROLI/JUCE/pull/467)

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [January 22, 2019, 10:46am UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/10 "2019-01-22T10:46:33Z")

</div>

Can someone from the Juce team give me an update?  
Without this fix, no one can make MPE plugins for VST3 format.

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [January 22, 2019, 12:25pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/11 "2019-01-22T12:25:05Z")

</div>

Investigating this is near the top of our backlog.

Apologies for the delay - I attempted to avoid most of the UK winter by holidaying in a different hemisphere for 5 weeks and am still catching up with JUCE issues.

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [January 22, 2019, 12:30pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/12 "2019-01-22T12:30:27Z")

</div>

Ok good to hear that 🙂

---

<div class="post-metadata">

**Author:** ![imoxplus](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/imoxplus/32/5728_2.png) [@imoxplus](https://forum.juce.com/u/imoxplus)\
**Post date:** [January 28, 2019, 10:03am UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/13 "2019-01-28T10:03:05Z")

</div>

Any further progress on MPE and VST3? This is really mission critical to my project (=start-up business). We have our beta testers waiting for this fix and start to loose momentum and credibility… So, pleassssseeee increase the priority on this fix because it is a real showstopper…thx

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [January 28, 2019, 11:28am UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/14 "2019-01-28T11:28:47Z")

</div>

Does Jelle’s patch not work for you?

If you’re worried about losing momentum then can you temporarily patch JUCE?

---

<div class="post-metadata">

**Author:** ![imoxplus](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/imoxplus/32/5728_2.png) [@imoxplus](https://forum.juce.com/u/imoxplus)\
**Post date:** [January 28, 2019, 12:06pm UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/15 "2019-01-28T12:06:58Z")

</div>

OK…I will go for the temp patch…

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [February 6, 2019, 10:04am UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/16 "2019-02-06T10:04:06Z")

</div>

Sorry for the delay:

> <https://github.com/WeAreROLI/JUCE/commit/9b8644fed6a9b376859c59352f851813528946bc>

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [February 6, 2019, 10:46am UTC](https://forum.juce.com/t/mpe-vst3-issue/31035/17 "2019-02-06T10:46:03Z")

</div>

Thanks tom!
