|
TracktionEngine
|
#include <tracktion_MidiOutputDevice.h>
Public Member Functions | |
| MidiOutputDevice (Engine &, juce::MidiDeviceInfo) | |
| ~MidiOutputDevice () override | |
| juce::String | openDevice () override |
| void | closeDevice () override |
| void | setEnabled (bool) override |
| bool | isMidi () const override |
| virtual MidiOutputDeviceInstance * | createInstance (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 () |
| MidiProgramManager & | getMidiProgramManager () const |
Public Member Functions inherited from tracktion::engine::OutputDevice | |
| OutputDevice (Engine &, juce::String type, juce::String name, juce::String deviceID) | |
| ~OutputDevice () override | |
| 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 | |
| Selectable () | |
| virtual | ~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 () |
Static Public Member Functions | |
| 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. | |
Protected Member Functions | |
| virtual void | sendMessageNow (const juce::MidiMessage &message) |
| void | loadProps () |
| void | saveProps () |
Protected Attributes | |
| juce::MidiDeviceInfo | deviceInfo |
| 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 |
| juce::String | programNameSet |
| double | sampleRate = 0 |
| std::unique_ptr< juce::MidiOutput > | outputDevice |
| bool | sendingMMC = false |
| bool | sendControllerMidiClock = false |
| bool | softDevice = false |
| ExternalController * | externalController = nullptr |
| juce::BigInteger | midiNotesOn |
| juce::BigInteger | channelsUsed |
| int | sustain = 0 |
| MidiMessageArray | midiMessages |
| juce::CriticalSection | noteOnLock |
Protected Attributes inherited from tracktion::engine::OutputDevice | |
| bool | enabled = false |
Additional Inherited Members | |
Public Types inherited from tracktion::engine::Selectable | |
| using | WeakRef = juce::WeakReference< Selectable > |
Public Attributes inherited from tracktion::engine::OutputDevice | |
| Engine & | engine |
Public Attributes inherited from tracktion::engine::Selectable | |
| WeakRef::Master | masterReference |
| tracktion::engine::MidiOutputDevice::MidiOutputDevice | ( | Engine & | , |
| juce::MidiDeviceInfo | |||
| ) |
|
override |
|
overridevirtual |
Implements tracktion::engine::OutputDevice.
|
overridevirtual |
Implements tracktion::engine::OutputDevice.
|
overridevirtual |
Implements tracktion::engine::OutputDevice.
|
overridevirtual |
Reimplemented from tracktion::engine::OutputDevice.
|
virtual |
| juce::String tracktion::engine::MidiOutputDevice::prepareToPlay | ( | Edit * | , |
| TimePosition | |||
| ) |
| bool tracktion::engine::MidiOutputDevice::start | ( | ) |
| void tracktion::engine::MidiOutputDevice::stop | ( | ) |
|
static |
|
static |
| juce::String tracktion::engine::MidiOutputDevice::getNameForMidiNoteNumber | ( | int | note, |
| int | midiChannel, | ||
| bool | useSharp = true |
||
| ) | const |
| bool tracktion::engine::MidiOutputDevice::isConnectedToExternalController | ( | ) | const |
References externalController.
| void tracktion::engine::MidiOutputDevice::setExternalController | ( | ExternalController * | ) |
sets the external controller messages are coming from
| void tracktion::engine::MidiOutputDevice::removeExternalController | ( | ExternalController * | ) |
| void tracktion::engine::MidiOutputDevice::updateMidiTC | ( | Edit * | ) |
| void tracktion::engine::MidiOutputDevice::setSendingMMC | ( | bool | ) |
|
noexcept |
References sendingMMC.
|
noexcept |
References sendMidiClock.
| void tracktion::engine::MidiOutputDevice::setSendingClock | ( | bool | ) |
|
noexcept |
References sendTimecode.
| void tracktion::engine::MidiOutputDevice::flipSendingTimecode | ( | ) |
|
noexcept |
References sendControllerMidiClock.
|
noexcept |
References sendControllerMidiClock.
| void tracktion::engine::MidiOutputDevice::fireMessage | ( | const juce::MidiMessage & | ) |
| void tracktion::engine::MidiOutputDevice::sendNoteOffMessages | ( | ) |
|
noexcept |
|
noexcept |
References preDelayMillisecs.
| void tracktion::engine::MidiOutputDevice::setPreDelayMs | ( | int | ) |
| juce::StringArray tracktion::engine::MidiOutputDevice::getProgramSets | ( | ) | const |
| int tracktion::engine::MidiOutputDevice::getCurrentSetIndex | ( | ) | const |
| void tracktion::engine::MidiOutputDevice::setCurrentProgramSet | ( | const juce::String & | ) |
| juce::String tracktion::engine::MidiOutputDevice::getCurrentProgramSet | ( | ) | const |
References programNameSet.
| juce::String tracktion::engine::MidiOutputDevice::getProgramName | ( | int | programNumber, |
| int | bank | ||
| ) |
| bool tracktion::engine::MidiOutputDevice::canEditProgramSet | ( | int | index | ) | const |
| bool tracktion::engine::MidiOutputDevice::canDeleteProgramSet | ( | int | index | ) | const |
| juce::String tracktion::engine::MidiOutputDevice::getBankName | ( | int | bank | ) |
| int tracktion::engine::MidiOutputDevice::getBankID | ( | int | bank | ) |
| bool tracktion::engine::MidiOutputDevice::areMidiPatchesZeroBased | ( | ) |
| MidiProgramManager & tracktion::engine::MidiOutputDevice::getMidiProgramManager | ( | ) | const |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by getPreDelayMs().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by isSendingTimecode().
|
protected |
Referenced by isSendingClock().
|
protected |
|
protected |
Referenced by getCurrentProgramSet().
|
protected |
|
protected |
|
protected |
Referenced by isSendingMMC().
|
protected |
Referenced by isSendingControllerMidiClock(), and setSendControllerMidiClock().
|
protected |
|
protected |
Referenced by isConnectedToExternalController().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |