TracktionEngine
|
Acts as a holder for a ControlSurface object. More...
#include <tracktion_ExternalController.h>
Public Member Functions | |
ExternalController (Engine &, ControlSurface *) | |
~ExternalController () override | |
juce::String | getName () const |
bool | wantsDevice (const MidiID &m) |
bool | needsMidiChannel () const |
bool | needsMidiBackChannel () const |
juce::String | getDesiredMidiChannel () const |
juce::String | getDesiredMidiBackChannel () const |
bool | needsOSCSocket () const |
int | getNumDevices () const |
void | setNumDevices (int) |
int | getMainDevice () const |
void | setMainDevice (int) |
juce::String | getMidiInputDevice (int idx) const |
void | setMidiInputDevice (int idx, const juce::String &nameOfMidiInput) |
juce::String | getBackChannelDevice (int idx) const |
void | setBackChannelDevice (int idx, const juce::String &nameOfMidiOutput) |
bool | isUsingMidiOutputDevice (const MidiOutputDevice *d) const noexcept |
int | getOSCInputPort () |
void | setOSCInputPort (int port) |
int | getOSCOutputPort () |
void | setOSCOutputPort (int port) |
juce::String | getOSCOutputAddress () |
void | setOSCOutputAddress (const juce::String addr) |
bool | isEnabled () const |
void | setEnabled (bool) |
bool | isDeletable () const |
void | deleteController () |
bool | wantsMidiClock () const |
void | currentEditChanged (Edit *) |
void | currentSelectionManagerChanged (SelectionManager *) |
void | moveFader (int channelNum, float newSliderPos) |
void | moveMasterFader (float newPos) |
void | movePanPot (int channelNum, float newPan) |
void | moveMasterPanPot (float newPos) |
void | updateSoloAndMute (int channelNum, Track::MuteAndSoloLightState, bool isBright) |
void | soloCountChanged (bool) |
void | playStateChanged (bool isPlaying) |
void | recordStateChanged (bool isRecording) |
void | automationModeChanged (bool isReading, bool isWriting) |
void | snapChanged (bool isOn) |
void | loopChanged (bool isOn) |
void | clickChanged (bool isOn) |
void | channelLevelChanged (int channel, float l, float r) |
void | masterLevelsChanged (float leftLevel, float rightLevel) |
void | timecodeChanged (int barsOrHours, int beatsOrMinutes, int ticksOrSeconds, int millisecs, bool isBarsBeats, bool isFrames) |
void | trackSelected (int channel, bool isSelected) |
void | selectOtherObject (SelectableClass::Relationship, bool moveFromCurrentPlugin) |
void | muteOrUnmutePlugin () |
void | muteOrUnmutePluginsInTrack () |
void | changePluginPreset (int delta) |
void | soloPluginTrack () |
void | auxSendLevelsChanged () |
void | updateDeviceState () |
void | updateParameters () |
void | updateMarkers () |
void | selectedPluginChanged () |
void | selectableObjectChanged (Selectable *) override |
void | selectableObjectAboutToBeDeleted (Selectable *) override |
void | curveHasChanged (AutomatableParameter &) override |
Called when the automation curve has changed, point time, value or curve. | |
void | currentValueChanged (AutomatableParameter &) override |
Called when the current value of the parameter changed, either from setting the parameter, automation, a macro or modifier. | |
void | updateTrackSelectLights () |
void | updateTrackRecordLights () |
void | updatePunchLights () |
void | updateScrollLights () |
void | updateUndoLights () |
void | updatePadColours () |
void | clearPadColours () |
int | getNumFaderChannels () const noexcept |
int | getFaderIndexInActiveRegion (int num) const noexcept |
juce::Range< int > | getActiveChannels () const noexcept |
int | getNumParameterControls () const noexcept |
juce::Range< int > | getActiveParams () const noexcept |
void | midiInOutDevicesChanged () |
void | oscSettingsChanged () |
void | handleAsyncUpdate () override |
void | acceptMidiMessage (MidiInputDevice &, const juce::MidiMessage &) |
bool | wantsMessage (MidiInputDevice &, const juce::MidiMessage &) |
bool | eatsAllMessages () const |
bool | canSetEatsAllMessages () |
void | setEatsAllMessages (bool eatAll) |
juce::Colour | getSelectionColour () const |
bool | getShowTrackSelectionColour () const |
bool | getShowClipSlotSelectionColour () const |
void | setSelectionColour (juce::Colour) |
void | setShowTrackSelectionColour (bool) |
void | setShowClipSlotSelectionColour (bool) |
bool | shouldTrackBeColoured (int channelNum) |
void | getTrackColour (int channelNum, juce::Colour &) |
std::optional< ColourArea > | getColouredArea (const Edit &) |
bool | shouldPluginBeColoured (Plugin *) |
void | getPluginColour (Plugin *, juce::Colour &) |
void | repaintParamSource () |
void | redrawTracks () |
ControlSurface & | getControlSurface () const noexcept |
template<typename Type > | |
Type * | getControlSurfaceIfType () const noexcept |
ExternalControllerManager & | getExternalControllerManager () const noexcept |
Edit * | getEdit () const |
TransportControl * | getTransport () const noexcept |
juce::String | getInputDeviceName (int idx) const |
juce::String | getOutputDeviceName (int idx) const |
juce::StringArray | getMidiInputPorts () const |
juce::StringArray | getMidiOutputPorts () const |
Static Public Member Functions | |
static juce::String | shortenName (juce::String, int maxLen) |
static juce::String | getNoDeviceSelectedMessage () |
Public Attributes | |
Engine & | engine |
Acts as a holder for a ControlSurface object.
tracktion::engine::ExternalController::ExternalController | ( | Engine & | , |
ControlSurface * | |||
) |
|
override |
juce::String tracktion::engine::ExternalController::getName | ( | ) | const |
bool tracktion::engine::ExternalController::wantsDevice | ( | const MidiID & | m | ) |
bool tracktion::engine::ExternalController::needsMidiChannel | ( | ) | const |
bool tracktion::engine::ExternalController::needsMidiBackChannel | ( | ) | const |
juce::String tracktion::engine::ExternalController::getDesiredMidiChannel | ( | ) | const |
juce::String tracktion::engine::ExternalController::getDesiredMidiBackChannel | ( | ) | const |
bool tracktion::engine::ExternalController::needsOSCSocket | ( | ) | const |
int tracktion::engine::ExternalController::getNumDevices | ( | ) | const |
void tracktion::engine::ExternalController::setNumDevices | ( | int | ) |
int tracktion::engine::ExternalController::getMainDevice | ( | ) | const |
void tracktion::engine::ExternalController::setMainDevice | ( | int | ) |
juce::String tracktion::engine::ExternalController::getMidiInputDevice | ( | int | idx | ) | const |
void tracktion::engine::ExternalController::setMidiInputDevice | ( | int | idx, |
const juce::String & | nameOfMidiInput | ||
) |
juce::String tracktion::engine::ExternalController::getBackChannelDevice | ( | int | idx | ) | const |
void tracktion::engine::ExternalController::setBackChannelDevice | ( | int | idx, |
const juce::String & | nameOfMidiOutput | ||
) |
|
noexcept |
int tracktion::engine::ExternalController::getOSCInputPort | ( | ) |
void tracktion::engine::ExternalController::setOSCInputPort | ( | int | port | ) |
int tracktion::engine::ExternalController::getOSCOutputPort | ( | ) |
void tracktion::engine::ExternalController::setOSCOutputPort | ( | int | port | ) |
juce::String tracktion::engine::ExternalController::getOSCOutputAddress | ( | ) |
void tracktion::engine::ExternalController::setOSCOutputAddress | ( | const juce::String | addr | ) |
bool tracktion::engine::ExternalController::isEnabled | ( | ) | const |
void tracktion::engine::ExternalController::setEnabled | ( | bool | ) |
bool tracktion::engine::ExternalController::isDeletable | ( | ) | const |
void tracktion::engine::ExternalController::deleteController | ( | ) |
bool tracktion::engine::ExternalController::wantsMidiClock | ( | ) | const |
void tracktion::engine::ExternalController::currentEditChanged | ( | Edit * | ) |
void tracktion::engine::ExternalController::currentSelectionManagerChanged | ( | SelectionManager * | ) |
void tracktion::engine::ExternalController::moveFader | ( | int | channelNum, |
float | newSliderPos | ||
) |
void tracktion::engine::ExternalController::moveMasterFader | ( | float | newPos | ) |
void tracktion::engine::ExternalController::movePanPot | ( | int | channelNum, |
float | newPan | ||
) |
void tracktion::engine::ExternalController::moveMasterPanPot | ( | float | newPos | ) |
void tracktion::engine::ExternalController::updateSoloAndMute | ( | int | channelNum, |
Track::MuteAndSoloLightState | , | ||
bool | isBright | ||
) |
void tracktion::engine::ExternalController::soloCountChanged | ( | bool | ) |
void tracktion::engine::ExternalController::playStateChanged | ( | bool | isPlaying | ) |
void tracktion::engine::ExternalController::recordStateChanged | ( | bool | isRecording | ) |
void tracktion::engine::ExternalController::automationModeChanged | ( | bool | isReading, |
bool | isWriting | ||
) |
void tracktion::engine::ExternalController::snapChanged | ( | bool | isOn | ) |
void tracktion::engine::ExternalController::loopChanged | ( | bool | isOn | ) |
void tracktion::engine::ExternalController::clickChanged | ( | bool | isOn | ) |
void tracktion::engine::ExternalController::channelLevelChanged | ( | int | channel, |
float | l, | ||
float | r | ||
) |
void tracktion::engine::ExternalController::masterLevelsChanged | ( | float | leftLevel, |
float | rightLevel | ||
) |
void tracktion::engine::ExternalController::timecodeChanged | ( | int | barsOrHours, |
int | beatsOrMinutes, | ||
int | ticksOrSeconds, | ||
int | millisecs, | ||
bool | isBarsBeats, | ||
bool | isFrames | ||
) |
void tracktion::engine::ExternalController::trackSelected | ( | int | channel, |
bool | isSelected | ||
) |
void tracktion::engine::ExternalController::selectOtherObject | ( | SelectableClass::Relationship | , |
bool | moveFromCurrentPlugin | ||
) |
void tracktion::engine::ExternalController::muteOrUnmutePlugin | ( | ) |
void tracktion::engine::ExternalController::muteOrUnmutePluginsInTrack | ( | ) |
void tracktion::engine::ExternalController::changePluginPreset | ( | int | delta | ) |
void tracktion::engine::ExternalController::soloPluginTrack | ( | ) |
void tracktion::engine::ExternalController::auxSendLevelsChanged | ( | ) |
void tracktion::engine::ExternalController::updateDeviceState | ( | ) |
void tracktion::engine::ExternalController::updateParameters | ( | ) |
void tracktion::engine::ExternalController::updateMarkers | ( | ) |
void tracktion::engine::ExternalController::selectedPluginChanged | ( | ) |
|
overridevirtual |
Implements tracktion::engine::SelectableListener.
|
overridevirtual |
Implements tracktion::engine::SelectableListener.
|
overridevirtual |
Called when the automation curve has changed, point time, value or curve.
Implements tracktion::engine::AutomatableParameter::Listener.
|
overridevirtual |
Called when the current value of the parameter changed, either from setting the parameter, automation, a macro or modifier.
This is async so you won't get a callback for every parameter change.
Reimplemented from tracktion::engine::AutomatableParameter::Listener.
void tracktion::engine::ExternalController::updateTrackSelectLights | ( | ) |
void tracktion::engine::ExternalController::updateTrackRecordLights | ( | ) |
void tracktion::engine::ExternalController::updatePunchLights | ( | ) |
void tracktion::engine::ExternalController::updateScrollLights | ( | ) |
void tracktion::engine::ExternalController::updateUndoLights | ( | ) |
void tracktion::engine::ExternalController::updatePadColours | ( | ) |
void tracktion::engine::ExternalController::clearPadColours | ( | ) |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void tracktion::engine::ExternalController::midiInOutDevicesChanged | ( | ) |
void tracktion::engine::ExternalController::oscSettingsChanged | ( | ) |
|
override |
void tracktion::engine::ExternalController::acceptMidiMessage | ( | MidiInputDevice & | , |
const juce::MidiMessage & | |||
) |
bool tracktion::engine::ExternalController::wantsMessage | ( | MidiInputDevice & | , |
const juce::MidiMessage & | |||
) |
bool tracktion::engine::ExternalController::eatsAllMessages | ( | ) | const |
bool tracktion::engine::ExternalController::canSetEatsAllMessages | ( | ) |
void tracktion::engine::ExternalController::setEatsAllMessages | ( | bool | eatAll | ) |
juce::Colour tracktion::engine::ExternalController::getSelectionColour | ( | ) | const |
bool tracktion::engine::ExternalController::getShowTrackSelectionColour | ( | ) | const |
bool tracktion::engine::ExternalController::getShowClipSlotSelectionColour | ( | ) | const |
void tracktion::engine::ExternalController::setSelectionColour | ( | juce::Colour | ) |
void tracktion::engine::ExternalController::setShowTrackSelectionColour | ( | bool | ) |
void tracktion::engine::ExternalController::setShowClipSlotSelectionColour | ( | bool | ) |
bool tracktion::engine::ExternalController::shouldTrackBeColoured | ( | int | channelNum | ) |
void tracktion::engine::ExternalController::getTrackColour | ( | int | channelNum, |
juce::Colour & | |||
) |
std::optional< ColourArea > tracktion::engine::ExternalController::getColouredArea | ( | const Edit & | ) |
bool tracktion::engine::ExternalController::shouldPluginBeColoured | ( | Plugin * | ) |
void tracktion::engine::ExternalController::getPluginColour | ( | Plugin * | , |
juce::Colour & | |||
) |
void tracktion::engine::ExternalController::repaintParamSource | ( | ) |
void tracktion::engine::ExternalController::redrawTracks | ( | ) |
|
noexcept |
Referenced by getEdit(), and getTransport().
|
noexcept |
|
noexcept |
Edit * tracktion::engine::ExternalController::getEdit | ( | ) | const |
References getControlSurface(), and tracktion::engine::ControlSurface::getEdit().
|
noexcept |
References getControlSurface(), and tracktion::engine::ControlSurface::getTransport().
|
static |
juce::String tracktion::engine::ExternalController::getInputDeviceName | ( | int | idx | ) | const |
juce::String tracktion::engine::ExternalController::getOutputDeviceName | ( | int | idx | ) | const |
juce::StringArray tracktion::engine::ExternalController::getMidiInputPorts | ( | ) | const |
juce::StringArray tracktion::engine::ExternalController::getMidiOutputPorts | ( | ) | const |
|
static |
Engine& tracktion::engine::ExternalController::engine |