tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tracktion::engine::SoftwareMidiOutputDevice Class Reference

Create a software midi port on macOS. More...

#include "tracktion_MidiOutputDevice.h"

Inheritance diagram for tracktion::engine::SoftwareMidiOutputDevice:
tracktion::engine::MidiOutputDevice tracktion::engine::OutputDevice tracktion::engine::Selectable

Public Member Functions

 SoftwareMidiOutputDevice (Engine &e, const juce::String &deviceName)
 
- Public Member Functions inherited from tracktion::engine::MidiOutputDevice
 MidiOutputDevice (Engine &, juce::MidiDeviceInfo)
 
juce::String openDevice () override
 
void closeDevice () override
 
void setEnabled (bool) override
 
bool isMidi () const override
 
virtual MidiOutputDeviceInstancecreateInstance (EditPlaybackContext &)
 
juce::String prepareToPlay (Edit *, TimePosition)
 
bool start ()
 
void stop ()
 
juce::String getNameForMidiNoteNumber (int note, int midiChannel, bool useSharp=true) const
 
bool isConnectedToExternalController () const
 
void setExternalController (ExternalController *)
 sets the external controller messages are coming from
 
void removeExternalController (ExternalController *)
 
void updateMidiTC (Edit *)
 
void setSendingMMC (bool)
 
bool isSendingMMC () const noexcept
 
bool isSendingClock () const noexcept
 
void setSendingClock (bool)
 
bool isSendingTimecode () const noexcept
 
void flipSendingTimecode ()
 
void setSendControllerMidiClock (bool b) noexcept
 
bool isSendingControllerMidiClock () const noexcept
 
void fireMessage (const juce::MidiMessage &)
 
void sendNoteOffMessages ()
 
TimeDuration getDeviceDelay () const noexcept
 
int getPreDelayMs () const noexcept
 
void setPreDelayMs (int)
 
juce::StringArray getProgramSets () const
 
int getCurrentSetIndex () const
 
void setCurrentProgramSet (const juce::String &)
 
juce::String getCurrentProgramSet () const
 
juce::String getProgramName (int programNumber, int bank)
 
bool canEditProgramSet (int index) const
 
bool canDeleteProgramSet (int index) const
 
juce::String getBankName (int bank)
 
int getBankID (int bank)
 
bool areMidiPatchesZeroBased ()
 
MidiProgramManagergetMidiProgramManager () const
 
- Public Member Functions inherited from tracktion::engine::OutputDevice
 OutputDevice (Engine &, juce::String type, juce::String name, juce::String deviceID)
 
virtual juce::String getName () const
 
juce::String getAlias () const
 the alias is the name shown in the draggable input device components
 
void setAlias (const juce::String &alias)
 
juce::String getDeviceID () const
 
juce::String getSelectableDescription () override
 Subclasses must return a description of what they are.
 
bool isEnabled () const
 
- Public Member Functions inherited from tracktion::engine::Selectable
virtual void selectionStatusChanged (bool isNowSelected)
 Can be overridden to tell this object that it has just been selected or deselected.
 
virtual void changed ()
 This should be called to send a change notification to any SelectableListeners that are registered with this object.
 
virtual void selectableAboutToBeDeleted ()
 Called just before the selectable is about to be deleted so any subclasses should still be valid at this point.
 
void addListener (SelectableListener *)
 
void removeListener (SelectableListener *)
 
void addSelectableListener (SelectableListener *)
 
void removeSelectableListener (SelectableListener *)
 
void cancelAnyPendingUpdates ()
 If changed() has been called, this will cancel any pending async change notificaions.
 
void deselect ()
 
void propertiesChanged ()
 
void notifyListenersOfDeletion ()
 
WeakRef getWeakRef ()
 

Additional Inherited Members

- Public Types inherited from tracktion::engine::Selectable
using WeakRef = juce::WeakReference< Selectable >
 
- Static Public Member Functions inherited from tracktion::engine::MidiOutputDevice
static void setControllerOffMessagesSent (Engine &, bool)
 
static bool getControllerOffMessagesSent (Engine &)
 
- Static Public Member Functions inherited from tracktion::engine::Selectable
static void initialise ()
 
static bool isSelectableValid (const Selectable *) noexcept
 checks whether this object has been deleted.
 
- Public Attributes inherited from tracktion::engine::OutputDevice
Engineengine
 
- Public Attributes inherited from tracktion::engine::Selectable
WeakRef::Master masterReference
 
- Protected Member Functions inherited from tracktion::engine::MidiOutputDevice
virtual void sendMessageNow (const juce::MidiMessage &message)
 
void loadProps ()
 
void saveProps ()
 
- Protected Attributes inherited from tracktion::engine::MidiOutputDevice
juce::MidiDeviceInfo deviceInfo
 
int preDelayMillisecs
 
int audioAdjustmentDelay
 
std::unique_ptr< MidiTimecodeGeneratortimecodeGenerator
 
std::unique_ptr< MidiClockGeneratormidiClockGenerator
 
bool sendTimecode
 
bool sendMidiClock
 
bool playing
 
juce::String programNameSet
 
double sampleRate
 
std::unique_ptr< juce::MidiOutputoutputDevice
 
bool sendingMMC
 
bool sendControllerMidiClock
 
bool softDevice
 
ExternalControllerexternalController
 
juce::BigInteger midiNotesOn
 
juce::BigInteger channelsUsed
 
int sustain
 
MidiMessageArray midiMessages
 
juce::CriticalSection noteOnLock
 
- Protected Attributes inherited from tracktion::engine::OutputDevice
bool enabled
 

Detailed Description

Create a software midi port on macOS.

Not supported on other platforms

Definition at line 118 of file tracktion_MidiOutputDevice.h.

Constructor & Destructor Documentation

◆ SoftwareMidiOutputDevice()

tracktion::engine::SoftwareMidiOutputDevice::SoftwareMidiOutputDevice ( Engine e,
const juce::String deviceName 
)

Definition at line 121 of file tracktion_MidiOutputDevice.h.


The documentation for this class was generated from the following file: