Hi I’m new to Juce and have installed Juce 7.0.12 on windows 10.
I started with the tutorials and “create a basic Audio/MIDI plugin, Part 2:” completed but it’s not executing successfully. I load it under AudioPluginHost but the graphical Midi keyboard does not seem to generate midi input. I have not pasted my code and images on this because I saw another way to check what may be happening.
I tried the Demorunner.exe ‘browse demos’ → ‘Audio’ → ‘MidiDemo.h’.
When I mouse click on the midi keys they change colour but there is nothing in the ‘MIDI Input’ or ‘Received MIDI messages:’ window frames or sound. In the settings output: I pressed the [test] button and I get a tone.
I took a stab in the dark and removed 7.0.12 and installed 7.0.8 but fails the same at both release levels. Can someone check on windows if demo runner MidiDemo.h GUI keyboard is working?
I think getting the demo running would get me rolling.
Thanks and regards Rod. (edited and corrected to version 7 not 8)
Ouch just spotted I wrote down 8.0.12 and 8.0.8 in my paper notes instead of 7.0.12 and 7.0.8,
thus the wrong 8 not 7 version in my post. Sorry I will try and edit if its allowed.
Update: I have tried Juce 7.0.12, 7.0.8, 6.1.1 and 5.4.5 DemoRunner ‘Audio’->‘MidiDemo.h’ and none respond to the ‘on-screen keyboard’ keys being clicked except for key colour change.
I think there is a chance this is in some way because I DONT have a an external MIDI source on my PC. (I will try and confirm this when I can get my hands on a MIDI key board to try)
The good news is I found the ‘Handling MIDI events’ Tutorial and built it.
The ‘on-screen keyboard’ keys being clicked with this tutorial displays the key on/off actions:
00:00:03.113 - Note on C4 (On-Screen Keyboard)
00:00:03.274 - Note off C4 (On-Screen Keyboard)
So now I have a working start point to try and work out why my ‘basic Audio/MIDI plugin, Part 2’ does not work from the ‘on-screen keyboard’. It seems I have to focus on the ‘MidiKeyboardComponent class’.
Regards Rod
Finally got my hands on a USB attach MIDI keyboard so here is the result:
Demorunner.exe ‘browse demos’ → ‘Audio’ → ‘MidiDemo.h’.
When I mouse click on the ‘on-screen keyboard’ midi keys they change colour but there is nothing in the ‘MIDI Input’ or ‘Received MIDI messages:’ window frames.
If I plug in a USB MIDI keyboard it appears in the ‘MIDI Input:’ frame, I select it and press some of the keys and receive ‘note on’/‘note off’ message in the ‘Received MIDI messages…’ frame.
So the DemoRunner MidiDemo.h does not work from the ‘on-screen keyboard’ but is ok from a USB attached MIDI.
Regards Rod
