73 #if JUCE_LINUX || JUCE_MAC || JUCE_IOS || DOXYGEN
97 void sendBlockOfMessagesNow (
const MidiBuffer& buffer);
117 void sendBlockOfMessages (
const MidiBuffer& buffer,
122 void clearAllPendingMessages();
127 void startBackgroundThread();
132 void stopBackgroundThread();
137 void* internal =
nullptr;
146 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
MidiOutput)
Holds a resizable array of primitive or copy-by-value objects.
Holds a sequence of time-stamped midi events.
Encapsulates a MIDI message.
Controls a physical MIDI output device.
const String & getName() const noexcept
Returns the name of this device.
static MidiOutput * openDevice(int deviceIndex)
Tries to open one of the midi output devices.
static int getDefaultDeviceIndex()
Returns the index of the default midi output device to use.
static MidiOutput * createNewDevice(const String &deviceName)
This will try to create a new midi output device (Not available on Windows).
void sendMessageNow(const MidiMessage &message)
Sends out a MIDI message immediately.
static StringArray getDevices()
Returns a list of the available midi output devices.
~MidiOutput() override
Destructor.
A special array for holding a list of strings.
#define JUCE_API
This macro is added to all JUCE public class declarations.