1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

AUv3: Added support for MIDI output, host MIDI controller visibility and MPE

This commit is contained in:
tpoole 2017-07-28 08:57:38 +01:00
parent 1089f3837c
commit 621fcf31d2
5 changed files with 167 additions and 29 deletions

View file

@ -101,7 +101,7 @@ JuceDemoPluginAudioProcessorEditor::JuceDemoPluginAudioProcessorEditor (JuceDemo
timecodeDisplayLabel.setFont (Font (Font::getDefaultMonospacedFontName(), 15.0f, Font::plain));
// set resize limits for this plug-in
setResizeLimits (400, 200, 800, 300);
setResizeLimits (400, 200, 1024, 700);
// set our component's initial size to be the last one that was stored in the filter's settings
setSize (owner.lastUIWidth,
@ -146,6 +146,11 @@ void JuceDemoPluginAudioProcessorEditor::timerCallback()
updateTimecodeDisplay (getProcessor().lastPosInfo);
}
void JuceDemoPluginAudioProcessorEditor::hostMIDIControllerIsAvailable (bool controllerIsAvailable)
{
midiKeyboard.setVisible (! controllerIsAvailable);
}
//==============================================================================
// quick-and-dirty function to format a timecode string
static String timeToTimecodeString (double seconds)