# No Pitch Wheel Output with MidiBuffer

**URL:** <https://forum.juce.com/t/no-pitch-wheel-output-with-midibuffer/37175>\
**Category:** General JUCE discussion\
**Created:** [January 18, 2020, 12:45am UTC](https://forum.juce.com/t/no-pitch-wheel-output-with-midibuffer/37175 "2020-01-18T00:45:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zardini123](https://avatars.discourse-cdn.com/v4/letter/z/958977/32.png) [@zardini123](https://forum.juce.com/u/zardini123)\
**Post date:** [January 18, 2020, 12:45am UTC](https://forum.juce.com/t/no-pitch-wheel-output-with-midibuffer/37175/1 "2020-01-18T00:45:38Z")

</div>

I cannot get any Pitch Wheel output from my Midi Effect VST 3 using JUCE. I attempt to add the pitchWheel message upon any input Midi Message, using a similar way according to the “Modifying MIDI Notes” section according to the [official JUCE tutorial](https://docs.juce.com/master/tutorial_code_basic_plugin.html).

The test code below should create a random midi note, along with a random pitch bend value, upon every incoming message. Upon running this in Ableton and Bitwig, both creates the cluster of midi on messages, each with random velocities. Though, absolutely no pitch messages.

```
void XenMidiRetunerAudioProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuffer& midiMessages)
{
    buffer.clear();

    MidiBuffer processedMidi;
    int time;
    MidiMessage m;

    for (MidiBuffer::Iterator i (midiMessages); i.getNextEvent (m, time);)
    {
        // No pitch messages outputted?!?
        processedMidi.addEvent(MidiMessage::pitchWheel(m.getChannel(), random(0,16383)), time);
        // Note messages clearly are present
        processedMidi.addEvent(MidiMessage::noteOn(m.getChannel(), random(0,100), (uint8)random(0,100)), time);
    }

    midiMessages.swapWith(processedMidi);
}

```

No pitch data is also present when sending out an event with a constant value.

Is there something I’m missing?

---

<div class="post-metadata">

**Author:** ![stephenk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephenk/32/15198_2.png) [@stephenk](https://forum.juce.com/u/stephenk)\
**Post date:** [January 18, 2020, 1:23am UTC](https://forum.juce.com/t/no-pitch-wheel-output-with-midibuffer/37175/2 "2020-01-18T01:23:57Z")

</div>

VST3s cannot send MIDI CCs or Pitch Bend - at least not in the standard fashion. It’s up to the host to somehow route them, unlike the way VST2’s worked. There are numerous threads on this here, here’s one of them that is hosting an interesting discussion last few days:

> [@Add support for sending Midi CCs out of VST3 plugins](https://forum.juce.com/t/add-support-for-sending-midi-ccs-out-of-vst3-plugins/35781):
>
> Upon entering the rabbit hole of investigating why I cannot generate any MIDI Controller Messages (or Pitch Bend for that matter) in my VST3 MIDI Plugin and have it show up at the output, yet it works perfectly fine in my AU version of the same thing, I have discovered that apparently passing MIDI CCs to the output of a VST3 was removed by Steinberg in the initial spec, but has been added back in as of December 2018. That’s almost a year ago. Searching this forum, I have come up with multiple t…

---

<div class="post-metadata">

**Author:** ![zardini123](https://avatars.discourse-cdn.com/v4/letter/z/958977/32.png) [@zardini123](https://forum.juce.com/u/zardini123)\
**Post date:** [January 18, 2020, 2:26am UTC](https://forum.juce.com/t/no-pitch-wheel-output-with-midibuffer/37175/3 "2020-01-18T02:26:05Z")

</div>

Wow, I never knew VST3 entirely dropped MIDI CC! Thats certainly unfortunate! Thank you for quickly referencing me that thread! I was searching around for a solution to my issue, but I never ran across any thread discussing the VST3’s missing support for MIDI CC.
