AudioPluginHost & MIDI sound output (on Mac)

All being developed on a MacBook.

I am new to Juce and diligently working through the tutorials. I am currently creating a simple slider plugin that controls the volume of MIDI notes. See the running debug session output in this image:


which has been built by following this tutorial:
https://docs.juce.com/master/tutorial_code_basic_plugin.html

My question is: should I be able to use the virtual keyboard on the bottom of the AudioPluginHost to listen (i.e. be able to hear through the MacBook speakers) to MIDI passing through my simple slider plugin?

I suppose a simpler way to ask the question is “How do I get the AudioPluginHost virtual keyboard to output MIDI sounds on a Mac”

Some additional datapoints:

  • The settings for the AudioPluginHost are shown here:
    SEE SUBSEQUENT MESSAGE WITH SCREEN SHOT

  • Pressing the ‘Test’ button on the ‘Audio Settings’ dialog works - a sound it output via the Mac speakers; the Mac mic is also picking-up sound correctly as indicated by the blue ‘input’ bars. So basic audio input/output is working.

  • I know that the virtual keyboard keys (at the bottom of the AudioPluginHost window) are being ‘seen’ when pressed because setting a breakpoint inside the TutorialPluginAudioProcessor::processBlock() method when “MIDImessage.isNoteOn()==TRUE” is being triggered.

Any help for a beginning would be greatly appreciated!

Screen shot of AudioPluginHost settings:

You don’t have an instrument plugin loaded in the host, so what is supposed to be playing the notes? The tutorial plugin only changes the velocities of incoming MIDI notes, it doesn’t actually play any audio.

Got it. I added the “AUv3 Synth” into the path (as shown) and can now hear the virtual keyboard notes, and can control the volume with the tutorial slider.
Thanks for the quick response and helpful advice.

1 Like