TracktionEngine
Public Member Functions | List of all members
tracktion::engine::SoftwareMidiOutputDevice Class Reference

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

Inheritance diagram for tracktion::engine::SoftwareMidiOutputDevice:

Public Member Functions

 SoftwareMidiOutputDevice (Engine &e, const juce::String &deviceName)
 
- Public Member Functions inherited from tracktion::engine::MidiOutputDevice
 MidiOutputDevice (Engine &, const juce::String &name, int deviceIndex)
 
 ~MidiOutputDevice () 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 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 &, const juce::String &type, const juce::String &name)
 
 ~OutputDevice () override
 
virtual juce::String getName () const
 
juce::String getAlias () const
 the alias is the name shown in the draggable input device components More...
 
void setAlias (const juce::String &alias)
 
void initialiseDefaultAlias ()
 Called after all devices are constructed, so it can use all the device names in its calculations. More...
 
juce::String getDeviceID () const
 
juce::String getSelectableDescription () override
 Subclasses must return a description of what they are. More...
 
bool isEnabled () const
 
- Public Member Functions inherited from tracktion::engine::Selectable
 Selectable ()
 
virtual ~Selectable ()
 
virtual void selectionStatusChanged (bool isNowSelected)
 Can be overridden to tell this object that it has just been selected or deselected. More...
 
virtual void changed ()
 This should be called to send a change notification to any SelectableListeners that are registered with this object. More...
 
virtual void selectableAboutToBeDeleted ()
 Called just before the selectable is about to be deleted so any subclasses should still be valid at this point. More...
 
void addSelectableListener (SelectableListener *)
 
void removeSelectableListener (SelectableListener *)
 
void cancelAnyPendingUpdates ()
 If changed() has been called, this will cancel any pending async change notificaions. More...
 
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. More...
 
- 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 ()
 
juce::String openDevice () override
 
void closeDevice () override
 
- Protected Attributes inherited from tracktion::engine::MidiOutputDevice
int deviceIndex = 0
 
int preDelayMillisecs = 0
 
int audioAdjustmentDelay = 0
 
std::unique_ptr< MidiTimecodeGenerator > timecodeGenerator
 
std::unique_ptr< MidiClockGenerator > midiClockGenerator
 
bool sendTimecode = false
 
bool sendMidiClock = false
 
bool playing = false
 
bool firstSetEnabledCall = true
 
juce::String programNameSet
 
double sampleRate = 0
 
std::unique_ptr< juce::MidiOutput > outputDevice
 
bool sendingMMC = false
 
bool sendControllerMidiClock = false
 
bool defaultMidiDevice = false
 
bool softDevice = false
 
juce::BigInteger midiNotesOn
 
juce::BigInteger channelsUsed
 
int sustain = 0
 
MidiMessageArray midiMessages
 
juce::CriticalSection noteOnLock
 
- Protected Attributes inherited from tracktion::engine::OutputDevice
bool enabled = false
 

Detailed Description

Create a software midi port on macOS.

Not supported on other platforms

Constructor & Destructor Documentation

◆ SoftwareMidiOutputDevice()

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

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