mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CapabilityInquiryDemo: Add getting-started advice
This commit is contained in:
parent
d08577e507
commit
520be826c0
1 changed files with 25 additions and 1 deletions
|
|
@ -1218,6 +1218,12 @@ private:
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static constexpr auto ioLabelText = R"(Pick the input and output used to talk to the Capability Inquiry (CI) responder.
|
||||||
|
|
||||||
|
In order to use this demo you'll need another program/device that understands MIDI CI.
|
||||||
|
You could run a second copy of this CapabilityInquiryDemo, or install and use one of the apps listed below.
|
||||||
|
If you want to communicate with a program that doesn't have its own virtual MIDI ports, you may need to set up virtual ports yourself, e.g. by enabling the IAC MIDI driver on macOS.)";
|
||||||
|
|
||||||
class IOPickerLists : public Component
|
class IOPickerLists : public Component
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -1227,16 +1233,34 @@ public:
|
||||||
{
|
{
|
||||||
addAndMakeVisible (inputs);
|
addAndMakeVisible (inputs);
|
||||||
addAndMakeVisible (outputs);
|
addAndMakeVisible (outputs);
|
||||||
|
|
||||||
|
addAndMakeVisible (label);
|
||||||
|
addAndMakeVisible (toolsHeader);
|
||||||
|
addAndMakeVisible (workbenchButton);
|
||||||
|
addAndMakeVisible (responderButton);
|
||||||
|
toolsHeader.setJustificationType (Justification::centred);
|
||||||
}
|
}
|
||||||
|
|
||||||
void resized() override
|
void resized() override
|
||||||
{
|
{
|
||||||
Utils::doColumnLayout (getLocalBounds().reduced (Utils::padding), inputs, outputs);
|
auto bounds = getLocalBounds().reduced (Utils::padding);
|
||||||
|
|
||||||
|
responderButton.setBounds (bounds.removeFromBottom (20));
|
||||||
|
workbenchButton.setBounds (bounds.removeFromBottom (20));
|
||||||
|
toolsHeader.setBounds (bounds.removeFromBottom (20));
|
||||||
|
label.setBounds (bounds.removeFromBottom (200).withSizeKeepingCentre (jmin (600, bounds.getWidth()), 200));
|
||||||
|
|
||||||
|
Utils::doColumnLayout (bounds, inputs, outputs);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IOPickerList<MidiInput> inputs;
|
IOPickerList<MidiInput> inputs;
|
||||||
IOPickerList<MidiOutput> outputs;
|
IOPickerList<MidiOutput> outputs;
|
||||||
|
Label label { "", ioLabelText };
|
||||||
|
|
||||||
|
Label toolsHeader { "", "Other MIDI-CI software for testing:" };
|
||||||
|
HyperlinkButton workbenchButton { "MIDI 2.0 Workbench", URL { "https://github.com/midi2-dev/MIDI2.0Workbench" } };
|
||||||
|
HyperlinkButton responderButton { "Bome MIDI-CI Responder", URL { "https://www.bome.com/products/midi-ci-tools" } };
|
||||||
};
|
};
|
||||||
|
|
||||||
class SectionHeader : public Component
|
class SectionHeader : public Component
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue