TracktionEngine
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
tracktion::engine::AudioTrack Class Reference
Inheritance diagram for tracktion::engine::AudioTrack:

Classes

struct  FreezePointRemovalInhibitor
 Prevents the freeze point from being removed during an unfreeze operation. More...
 
struct  Listener
 Listener interface to be notified of recorded MIDI being sent to the plugins. More...
 

Public Types

using Ptr = juce::ReferenceCountedObjectPtr< AudioTrack >
 
- Public Types inherited from tracktion::engine::ClipTrack
using Ptr = juce::ReferenceCountedObjectPtr< ClipTrack >
 
- Public Types inherited from tracktion::engine::Track
enum  FreezeType { groupFreeze = 0 , individualFreeze , anyFreeze }
 Determines the type of freeze. More...
 
enum  MuteAndSoloLightState {
  soloLit = 1 , soloFlashing = 2 , soloIsolate = 4 , muteLit = 8 ,
  muteFlashing = 16
}
 Determines the status of the mute and solo indicators. More...
 
using Ptr = juce::ReferenceCountedObjectPtr< Track >
 
using Array = juce::ReferenceCountedArray< Track >
 
- Public Types inherited from tracktion::engine::Selectable
using WeakRef = juce::WeakReference< Selectable >
 

Public Member Functions

 AudioTrack (Edit &, const juce::ValueTree &)
 
 ~AudioTrack () override
 
void initialise () override
 Initialises the Track. More...
 
bool isAudioTrack () const override
 Returns true if this is an AudioTrack. More...
 
juce::String getSelectableDescription () override
 Subclasses must return a description of what they are. More...
 
int getAudioTrackNumber () const noexcept
 
void sanityCheckName () override
 checks whether the name is 'track n' and if so, makes sure the number is right More...
 
juce::String getName () const override
 
bool canContainPlugin (Plugin *) const override
 Returns true if this track can contain a specific Plugin. More...
 
bool processAudioNodesWhileMuted () const override
 Subclasses can override this to ensure track contents are still played even when the track is muted. More...
 
juce::String getTrackPlayabilityWarning () const
 returns a warning message about this track not being playable, or "" if it's ok More...
 
VolumeAndPanPlugingetVolumePlugin ()
 
LevelMeterPlugingetLevelMeterPlugin ()
 
EqualiserPlugingetEqualiserPlugin ()
 
AuxSendPlugingetAuxSendPlugin (int bus=-1) const
 
juce::String getNameForMidiNoteNumber (int note, int midiChannel, bool preferSharp=true) const
 looks for a name for a midi note by trying all the plugins, and returning a default on failure. More...
 
juce::String getNameForProgramNumber (int programNumber, int bank) const
 prog number is 0 based. More...
 
juce::String getNameForBank (int bank) const
 
int getIdForBank (int bank) const
 
bool areMidiPatchesZeroBased () const
 
WaveInputDevicegetWaveInputDevice () const noexcept
 
MidiInputDevicegetMidiInputDevice () const noexcept
 
TrackOutputgetOutput () const noexcept
 
int getMaxNumOfInputs () const noexcept
 
void setMaxNumOfInputs (int newMaxNumber)
 
bool canPlayAudio () const
 checks whether audio clips can be played - i.e. More...
 
bool canPlayMidi () const
 
bool isFrozen (FreezeType) const override
 Returns true if this track is frozen using the given type. More...
 
void setFrozen (bool, FreezeType) override
 Attempts to freeze or unfreeze the track using a given FreezeType. More...
 
void insertFreezePointAfterPlugin (const Plugin::Ptr &)
 
void removeFreezePoint ()
 
void freezeTrackAsync () const
 
bool hasAnyLiveInputs ()
 
bool hasAnyTracksFeedingIn ()
 
juce::Array< Track * > getInputTracks () const override
 Should return any tracks which feed into this track. More...
 
juce::Array< Track * > findSidechainSourceTracks () const
 
void injectLiveMidiMessage (const MidiMessageArray::MidiMessageWithSource &)
 
void injectLiveMidiMessage (const juce::MidiMessage &, MidiMessageArray::MPESourceID)
 
bool isMuted (bool includeMutingByDestination) const override
 Returns true if this track is muted. More...
 
bool isSolo (bool includeIndirectSolo) const override
 Returns true if this track is soloed. More...
 
bool isSoloIsolate (bool includeIndirectSolo) const override
 Returns true if this track is solo isolated. More...
 
void setMute (bool) override
 Subclasses should implement this to mute themselves. More...
 
void setSolo (bool) override
 Subclasses should implement this to solo themselves. More...
 
void setSoloIsolate (bool) override
 Subclasses should implement this to solo isolate themselves. More...
 
double getMidiVisibleProportion () const
 vertical scales for displaying the midi note editor More...
 
double getMidiVerticalOffset () const
 
void setMidiVerticalPos (double visibleProp, double offset)
 
void scaleVerticallyToFitMidi ()
 
void setVerticalScaleToDefault ()
 
void setTrackToGhost (AudioTrack *, bool shouldGhost)
 
void clearGhostTracks ()
 
juce::Array< AudioTrack * > getGhostTracks () const
 
int getCompGroup () const noexcept
 
void setCompGroup (int groupIndex)
 
bool hasMidiNoteNames ()
 
void clearMidiNoteNames ()
 
void loadMidiNoteNames (const juce::String namesFile)
 
bool mergeInMidiSequence (const juce::MidiMessageSequence &, TimePosition startTime, MidiClip *, MidiList::NoteAutomationType)
 try to add this MIDI sequence to any MIDI clips that are already in the track. More...
 
void playGuideNote (int note, MidiChannel midiChannel, int velocity, bool stopOtherFirst=true, bool forceNote=false, bool autorelease=false)
 
void playGuideNotes (const juce::Array< int > &notes, MidiChannel midiChannel, const juce::Array< int > &velocities, bool stopOthersFirst=true)
 
void turnOffGuideNotes ()
 
void turnOffGuideNotes (MidiChannel)
 
void addListener (Listener *)
 Adds a Listener. More...
 
void removeListener (Listener *)
 Removes a Listener. More...
 
juce::ListenerList< Listener > & getListeners ()
 Returns the listener list so Nodes can manually call them. More...
 
- Public Member Functions inherited from tracktion::engine::ClipTrack
 ClipTrack (Edit &, const juce::ValueTree &, double defaultHeight, double minHeight, double maxHeight)
 
 ~ClipTrack () override
 
void initialise () override
 
void flushStateToValueTree () override
 
ClipfindClipForID (EditItemID) const override
 Returns a clip one with a matching ID can be found on this Track. More...
 
CollectionClipgetCollectionClip (int index) const noexcept
 
CollectionClipgetCollectionClip (Clip *) const
 
int getNumCollectionClips () const noexcept
 
int indexOfCollectionClip (CollectionClip *) const
 
int getIndexOfNextCollectionClipAt (TimePosition)
 
CollectionClipgetNextCollectionClipAt (TimePosition)
 
bool contains (CollectionClip *) const
 
void addCollectionClip (CollectionClip *)
 
void removeCollectionClip (CollectionClip *)
 
int getNumTrackItems () const override
 Should return the number of TrackItem[s] on this Track. More...
 
TrackItemgetTrackItem (int idx) const override
 Should return the TrackItem at the given index. More...
 
int indexOfTrackItem (TrackItem *) const override
 Should return the index of the given TrackItem. More...
 
int getIndexOfNextTrackItemAt (TimePosition) override
 Should return the index of the TrackItem after this time. More...
 
TrackItemgetNextTrackItemAt (TimePosition) override
 Should return the TrackItem after this time. More...
 
void insertSpaceIntoTrack (TimePosition, TimeDuration) override
 inserts space and moves everything up More...
 
TimeDuration getLength () const
 
TimeDuration getLengthIncludingInputTracks () const
 
TimeRange getTotalRange () const
 
bool addClip (const Clip::Ptr &)
 
ClipinsertClipWithState (juce::ValueTree)
 
ClipinsertClipWithState (const juce::ValueTree &stateToUse, const juce::String &name, TrackItem::Type type, ClipPosition position, bool deleteExistingClips, bool allowSpottingAdjustment)
 
ClipinsertNewClip (TrackItem::Type, TimeRange position, SelectionManager *selectionManagerToSelectWith)
 
ClipinsertNewClip (TrackItem::Type, const juce::String &name, TimeRange position, SelectionManager *selectionManagerToSelectWith)
 
ClipinsertNewClip (TrackItem::Type, const juce::String &name, ClipPosition position, SelectionManager *selectionManagerToSelectWith)
 
juce::ReferenceCountedObjectPtr< WaveAudioClipinsertWaveClip (const juce::String &name, const juce::File &sourceFile, ClipPosition position, bool deleteExistingClips)
 
juce::ReferenceCountedObjectPtr< WaveAudioClipinsertWaveClip (const juce::String &name, ProjectItemID sourceID, ClipPosition position, bool deleteExistingClips)
 
juce::ReferenceCountedObjectPtr< MidiClipinsertMIDIClip (TimeRange position, SelectionManager *selectionManagerToSelectWith)
 
juce::ReferenceCountedObjectPtr< MidiClipinsertMIDIClip (const juce::String &name, TimeRange position, SelectionManager *selectionManagerToSelectWith)
 
juce::ReferenceCountedObjectPtr< EditClipinsertEditClip (TimeRange position, ProjectItemID sourceID)
 
void deleteRegion (TimeRange, SelectionManager *)
 
void deleteRegionOfClip (Clip::Ptr, TimeRange, SelectionManager *)
 
ClipsplitClip (Clip &, TimePosition)
 breaks a clip into 2 bits More...
 
void splitAt (TimePosition)
 split all clips at this time More...
 
TimePosition getNextTimeOfInterest (TimePosition afterThisTime)
 finds the next cut point More...
 
TimePosition getPreviousTimeOfInterest (TimePosition beforeThisTime)
 
bool containsPlugin (const Plugin *) const override
 Tests whether this Track or a clip on it contains the given plugin. More...
 
Plugin::Array getAllPlugins () const override
 Returns all pugins on this Track. More...
 
void sendMirrorUpdateToAllPlugins (Plugin &) const override
 Sends a message to all plugins that the given plugin has changed. More...
 
bool areAnyClipsUsingFile (const AudioFile &)
 
bool containsAnyMIDIClips () const
 
juce::ValueTree & getClipOwnerState () override
 
SelectablegetClipOwnerSelectable () override
 
EditgetClipOwnerEdit () override
 
void clipCreated (Clip &) override
 
void clipAddedOrRemoved () override
 
void clipOrderChanged () override
 
void clipPositionChanged () override
 
- Public Member Functions inherited from tracktion::engine::Track
 Track (Edit &, const juce::ValueTree &, double defaultTrackHeight, double minTrackHeight, double maxTrackHeight)
 Creates a track with a given state. More...
 
 ~Track () override
 Destructor. More...
 
void refreshCurrentAutoParam ()
 Updates the current parameter bases on the set IDs. More...
 
juce::String getName () const override
 Returns the name of the Track. More...
 
void setName (const juce::String &)
 Sets the name of the Track. More...
 
void resetName ()
 Sets the name of the Track to an empty string. More...
 
virtual bool isAutomationTrack () const
 Returns true if this is an AutomationTrack. More...
 
virtual bool isFolderTrack () const
 Returns true if this is a FolderTrack. More...
 
virtual bool isMarkerTrack () const
 Returns true if this is a MarkerTrack. More...
 
virtual bool isTempoTrack () const
 Returns true if this is a TempoTrack. More...
 
virtual bool isChordTrack () const
 Returns true if this is a ChordTrack. More...
 
virtual bool isArrangerTrack () const
 Returns true if this is an ArrangerTrack. More...
 
virtual bool isMasterTrack () const
 Returns true if this is a MasterTrack. More...
 
bool canContainMarkers () const
 Returns true if this Track can contain MarkerClip[s]. More...
 
bool canContainMIDI () const
 Returns true if this Track can contain MidiClip[s]. More...
 
bool canContainAudio () const
 Returns true if this Track can contain WaveAudioClip[s]. More...
 
bool canContainEditClips () const
 Returns true if this Track can contain EditClip[s]. More...
 
bool canContainPlugins () const
 Returns true if this Track can contain Plugin[s]. More...
 
bool isMovable () const
 Returns true if this Track is movable. More...
 
bool acceptsInput () const
 Returns true if this track can have inputs assigned to it. More...
 
bool createsOutput () const
 Returns true if this track creates audible output. More...
 
bool wantsAutomation () const
 Returns true if this track can show automation. More...
 
bool isHidden () const
 Returns true if this track should be hidden from view. More...
 
void setHidden (bool h)
 Sets whether this track should be hidden from view. More...
 
bool isProcessing (bool includeParents) const
 Returns true if this track should be included in playback. More...
 
void setProcessing (bool p)
 Sets whether this track should be included in playback. More...
 
juce::Array< Track * > getAllSubTracks (bool recursive) const
 Returns all nested tracks. More...
 
juce::Array< AudioTrack * > getAllAudioSubTracks (bool recursive) const
 Returns all nested AudioTrack[s]. More...
 
TrackListgetSubTrackList () const
 Returns the TrackList if this Track has any sub-tracks. More...
 
bool hasSubTracks () const
 Returns true if this track has any subtracks. More...
 
TrackgetSiblingTrack (int delta, bool keepWithinSameParent) const
 Returns a sibling Track to this one. More...
 
juce::ValueTree getParentTrackTree () const
 Returns the state of the parent Track. More...
 
TrackgetParentTrack () const
 Returns the parent Track if this is a nested track. More...
 
FolderTrackgetParentFolderTrack () const
 Returns the parent FolderTrack if this is nested in one. More...
 
bool isAChildOf (const Track &possibleParent) const
 Tests whether this is a child of a given Track. More...
 
bool isPartOfSubmix () const
 Tests whether this nested within a submix FolderTrack. More...
 
int getIndexInEditTrackList () const
 Returns the index of this track in a flat list of tracks contained in an Edit. More...
 
int getTrackDepth () const
 Returns the number of parents within which this track is nested. More...
 
MuteAndSoloLightState getMuteAndSoloLightState () const
 Returns the mute a solo status. More...
 
bool shouldBePlayed () const noexcept
 Tests whether this track should be audible in the playback graph i.e. More...
 
void updateAudibility (bool areAnyTracksSolo)
 Updates the audibility state of the Track. More...
 
juce::Array< AutomatableParameter * > getAllAutomatableParams () const
 Returns all the parameteres for this track's Plugin[s] and Modifier[s]. More...
 
AutomatableParametergetCurrentlyShownAutoParam () const noexcept
 Returns the parameter whos curve should be shown on this Track. More...
 
void setCurrentlyShownAutoParam (const AutomatableParameter::Ptr &)
 Sets a parameter to display on this Track. More...
 
void hideAutomatableParametersForSource (EditItemID pluginOrParameterID)
 Hides a shown parameter if it matches the given ID. More...
 
bool hasFreezePointPlugin () const
 Tests whether this Track contains a FreezePointPlugin. More...
 
juce::Array< AutomatableEditItem * > getAllAutomatableEditItems () const
 Returns all AutomatableEditItem[s] on this Track. More...
 
void flipAllPluginsEnablement ()
 Toggles the Plugin::isEnabled state for all Plugin[s] on this Track. More...
 
ModifierListgetModifierList () const
 Returns the ModifierList for this Track. More...
 
void setColour (juce::Colour newColour)
 Sets a colour for this track to use. More...
 
juce::Colour getColour () const
 Returns the the of this. More...
 
bool canShowImage () const
 Tests whether this Track can show an image. More...
 
void setTrackImage (const juce::String &idOrData)
 Sets some image data to use. More...
 
juce::String getTrackImage () const
 Returns previously set image data. More...
 
bool imageHasChanged ()
 Tests and resets a flag internally kept when the image changes. More...
 
void setTags (const juce::StringArray &)
 Sets an array of Strings to use as tags. More...
 
juce::String getTags () const
 Returns the tags as a pipe-separated single String. More...
 
const juce::StringArray & getTagsArray () const noexcept
 Returns the array of tags. More...
 
- Public Member Functions inherited from tracktion::engine::EditItem
 EditItem (EditItemID, Edit &)
 
virtual ~EditItem ()=default
 
- 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 ()
 
- Public Member Functions inherited from tracktion::engine::MacroParameterElement
 MacroParameterElement (Edit &, const juce::ValueTree &)
 Constructor. More...
 
virtual ~MacroParameterElement ()=default
 Destructor. More...
 
int getNumMacroParameters () const
 Returns the number of macro parameters for this object. More...
 
- Public Member Functions inherited from tracktion::engine::ClipOwner
 ClipOwner ()
 Constructs an empty ClipOwner. More...
 
virtual ~ClipOwner ()
 Destructor. More...
 
const juce::Array< Clip * > & getClips () const
 Returns the clips this owner contains. More...
 

Protected Member Functions

void valueTreePropertyChanged (juce::ValueTree &, const juce::Identifier &) override
 
bool isTrackAudible (bool areAnyTracksSolo) const override
 Returns whether this Track should be audible. More...
 
void timerCallback () override
 
- Protected Member Functions inherited from tracktion::engine::ClipTrack
juce::Array< TimePosition > findAllTimesOfInterest ()
 
void refreshTrackItems () const
 
- Protected Member Functions inherited from tracktion::engine::Track
void valueTreePropertyChanged (juce::ValueTree &, const juce::Identifier &) override
 
void valueTreeChildAdded (juce::ValueTree &, juce::ValueTree &) override
 
void valueTreeChildRemoved (juce::ValueTree &, juce::ValueTree &, int) override
 
void valueTreeChildOrderChanged (juce::ValueTree &, int, int) override
 
void valueTreeParentChanged (juce::ValueTree &) override
 
void handleAsyncUpdate () override
 
- Protected Member Functions inherited from tracktion::engine::ClipOwner
void initialiseClipOwner (Edit &, juce::ValueTree clipParentState)
 Must be called once from the subclass constructor to init the clip owner. More...
 

Additional Inherited Members

- 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::Track
const double defaultTrackHeight
 The default height of this Track. More...
 
const double minTrackHeight
 The minimum height of this Track. More...
 
const double maxTrackHeight
 The maximum height of this Track. More...
 
juce::ValueTree state
 The state of this Track. More...
 
PluginList pluginList
 The Track's PluginList. More...
 
- Public Attributes inherited from tracktion::engine::EditItem
Editedit
 
const EditItemID itemID
 Every EditItem has an ID which is unique within the edit. More...
 
- Public Attributes inherited from tracktion::engine::Selectable
WeakRef::Master masterReference
 
- Public Attributes inherited from tracktion::engine::MacroParameterElement
MacroParameterList macroParameterList
 
- Static Public Attributes inherited from tracktion::engine::Track
static const int minTrackHeightForDetail = 10
 The minimim height to show track contents at. More...
 
static const int trackHeightForEditor = 180
 The height at which inline editors should be shown. More...
 
static const int frozenTrackHeight = 15
 The height to show group frozen tracks. More...
 
- Protected Attributes inherited from tracktion::engine::ClipTrack
std::unique_ptr< CollectionClipListcollectionClipList
 
bool trackItemsDirty = false
 
juce::Array< TrackItem * > trackItems
 

Member Typedef Documentation

◆ Ptr

using tracktion::engine::AudioTrack::Ptr = juce::ReferenceCountedObjectPtr<AudioTrack>

Constructor & Destructor Documentation

◆ AudioTrack()

tracktion::engine::AudioTrack::AudioTrack ( Edit ,
const juce::ValueTree &   
)

◆ ~AudioTrack()

tracktion::engine::AudioTrack::~AudioTrack ( )
override

Member Function Documentation

◆ initialise()

void tracktion::engine::AudioTrack::initialise ( )
overridevirtual

Initialises the Track.

You shouldn't need to call this directly, it will be called by the track creation methods.

See also
Edit::insertTrack

Reimplemented from tracktion::engine::Track.

◆ isAudioTrack()

bool tracktion::engine::AudioTrack::isAudioTrack ( ) const
overridevirtual

Returns true if this is an AudioTrack.

Reimplemented from tracktion::engine::Track.

◆ getSelectableDescription()

juce::String tracktion::engine::AudioTrack::getSelectableDescription ( )
overridevirtual

Subclasses must return a description of what they are.

Implements tracktion::engine::Selectable.

References getName().

◆ getAudioTrackNumber()

int tracktion::engine::AudioTrack::getAudioTrackNumber ( ) const
noexcept

◆ sanityCheckName()

void tracktion::engine::AudioTrack::sanityCheckName ( )
overridevirtual

checks whether the name is 'track n' and if so, makes sure the number is right

Reimplemented from tracktion::engine::Track.

◆ getName()

juce::String tracktion::engine::AudioTrack::getName ( ) const
overridevirtual

◆ canContainPlugin()

bool tracktion::engine::AudioTrack::canContainPlugin ( Plugin ) const
overridevirtual

Returns true if this track can contain a specific Plugin.

Subclasses can override this to avoid specific plugins such as VCAPlugin[s] on AudioTrack[s].

Implements tracktion::engine::Track.

◆ processAudioNodesWhileMuted()

bool tracktion::engine::AudioTrack::processAudioNodesWhileMuted ( ) const
overridevirtual

Subclasses can override this to ensure track contents are still played even when the track is muted.

This may be required if this track is a sidechain source or feeding an aux for example.

Reimplemented from tracktion::engine::Track.

References tracktion::engine::EditItem::edit, tracktion::engine::Edit::engine, tracktion::engine::Engine::getEngineBehaviour(), and tracktion::engine::EngineBehaviour::shouldProcessMutedTracks().

◆ getTrackPlayabilityWarning()

juce::String tracktion::engine::AudioTrack::getTrackPlayabilityWarning ( ) const

returns a warning message about this track not being playable, or "" if it's ok

◆ getVolumePlugin()

VolumeAndPanPlugin* tracktion::engine::AudioTrack::getVolumePlugin ( )

◆ getLevelMeterPlugin()

LevelMeterPlugin* tracktion::engine::AudioTrack::getLevelMeterPlugin ( )

◆ getEqualiserPlugin()

EqualiserPlugin* tracktion::engine::AudioTrack::getEqualiserPlugin ( )

◆ getAuxSendPlugin()

AuxSendPlugin* tracktion::engine::AudioTrack::getAuxSendPlugin ( int  bus = -1) const

◆ getNameForMidiNoteNumber()

juce::String tracktion::engine::AudioTrack::getNameForMidiNoteNumber ( int  note,
int  midiChannel,
bool  preferSharp = true 
) const

looks for a name for a midi note by trying all the plugins, and returning a default on failure.

midiChannel is 1-16

◆ getNameForProgramNumber()

juce::String tracktion::engine::AudioTrack::getNameForProgramNumber ( int  programNumber,
int  bank 
) const

prog number is 0 based.

◆ getNameForBank()

juce::String tracktion::engine::AudioTrack::getNameForBank ( int  bank) const

◆ getIdForBank()

int tracktion::engine::AudioTrack::getIdForBank ( int  bank) const

◆ areMidiPatchesZeroBased()

bool tracktion::engine::AudioTrack::areMidiPatchesZeroBased ( ) const

◆ getWaveInputDevice()

WaveInputDevice& tracktion::engine::AudioTrack::getWaveInputDevice ( ) const
noexcept

◆ getMidiInputDevice()

MidiInputDevice& tracktion::engine::AudioTrack::getMidiInputDevice ( ) const
noexcept

◆ getOutput()

TrackOutput& tracktion::engine::AudioTrack::getOutput ( ) const
noexcept

◆ getMaxNumOfInputs()

int tracktion::engine::AudioTrack::getMaxNumOfInputs ( ) const
noexcept

◆ setMaxNumOfInputs()

void tracktion::engine::AudioTrack::setMaxNumOfInputs ( int  newMaxNumber)

◆ canPlayAudio()

bool tracktion::engine::AudioTrack::canPlayAudio ( ) const

checks whether audio clips can be played - i.e.

can they make it past the plugins, and is the track going to an audio output

◆ canPlayMidi()

bool tracktion::engine::AudioTrack::canPlayMidi ( ) const

◆ isFrozen()

bool tracktion::engine::AudioTrack::isFrozen ( FreezeType  ) const
overridevirtual

Returns true if this track is frozen using the given type.

Reimplemented from tracktion::engine::Track.

◆ setFrozen()

void tracktion::engine::AudioTrack::setFrozen ( bool  ,
FreezeType   
)
overridevirtual

Attempts to freeze or unfreeze the track using a given FreezeType.

Reimplemented from tracktion::engine::Track.

◆ insertFreezePointAfterPlugin()

void tracktion::engine::AudioTrack::insertFreezePointAfterPlugin ( const Plugin::Ptr )

◆ removeFreezePoint()

void tracktion::engine::AudioTrack::removeFreezePoint ( )

◆ freezeTrackAsync()

void tracktion::engine::AudioTrack::freezeTrackAsync ( ) const

◆ hasAnyLiveInputs()

bool tracktion::engine::AudioTrack::hasAnyLiveInputs ( )

◆ hasAnyTracksFeedingIn()

bool tracktion::engine::AudioTrack::hasAnyTracksFeedingIn ( )

◆ getInputTracks()

juce::Array<Track*> tracktion::engine::AudioTrack::getInputTracks ( ) const
overridevirtual

Should return any tracks which feed into this track.

Reimplemented from tracktion::engine::Track.

◆ findSidechainSourceTracks()

juce::Array<Track*> tracktion::engine::AudioTrack::findSidechainSourceTracks ( ) const

◆ injectLiveMidiMessage() [1/2]

void tracktion::engine::AudioTrack::injectLiveMidiMessage ( const MidiMessageArray::MidiMessageWithSource )

◆ injectLiveMidiMessage() [2/2]

void tracktion::engine::AudioTrack::injectLiveMidiMessage ( const juce::MidiMessage &  ,
MidiMessageArray::MPESourceID   
)

◆ isMuted()

bool tracktion::engine::AudioTrack::isMuted ( bool  ) const
overridevirtual

Returns true if this track is muted.

Parameters
includeMutingByDestinationIf this is true, this will retrn true if any tracks this feeds in to are muted.

Reimplemented from tracktion::engine::Track.

◆ isSolo()

bool tracktion::engine::AudioTrack::isSolo ( bool  ) const
overridevirtual

Returns true if this track is soloed.

Parameters
includeIndirectSoloIf this is true, this will retrn true if any tracks this feeds in to are soloed.

Reimplemented from tracktion::engine::Track.

◆ isSoloIsolate()

bool tracktion::engine::AudioTrack::isSoloIsolate ( bool  ) const
overridevirtual

Returns true if this track is solo isolated.

Parameters
includeIndirectSoloIf this is true, this will retrn true if any tracks this feeds in to are solo isolated.

Reimplemented from tracktion::engine::Track.

◆ setMute()

void tracktion::engine::AudioTrack::setMute ( bool  )
overridevirtual

Subclasses should implement this to mute themselves.

Reimplemented from tracktion::engine::Track.

◆ setSolo()

void tracktion::engine::AudioTrack::setSolo ( bool  )
overridevirtual

Subclasses should implement this to solo themselves.

Reimplemented from tracktion::engine::Track.

◆ setSoloIsolate()

void tracktion::engine::AudioTrack::setSoloIsolate ( bool  )
overridevirtual

Subclasses should implement this to solo isolate themselves.

Reimplemented from tracktion::engine::Track.

◆ getMidiVisibleProportion()

double tracktion::engine::AudioTrack::getMidiVisibleProportion ( ) const

vertical scales for displaying the midi note editor

◆ getMidiVerticalOffset()

double tracktion::engine::AudioTrack::getMidiVerticalOffset ( ) const

◆ setMidiVerticalPos()

void tracktion::engine::AudioTrack::setMidiVerticalPos ( double  visibleProp,
double  offset 
)

◆ scaleVerticallyToFitMidi()

void tracktion::engine::AudioTrack::scaleVerticallyToFitMidi ( )

◆ setVerticalScaleToDefault()

void tracktion::engine::AudioTrack::setVerticalScaleToDefault ( )

◆ setTrackToGhost()

void tracktion::engine::AudioTrack::setTrackToGhost ( AudioTrack ,
bool  shouldGhost 
)

◆ clearGhostTracks()

void tracktion::engine::AudioTrack::clearGhostTracks ( )

◆ getGhostTracks()

juce::Array<AudioTrack*> tracktion::engine::AudioTrack::getGhostTracks ( ) const

◆ getCompGroup()

int tracktion::engine::AudioTrack::getCompGroup ( ) const
noexcept

◆ setCompGroup()

void tracktion::engine::AudioTrack::setCompGroup ( int  groupIndex)

◆ hasMidiNoteNames()

bool tracktion::engine::AudioTrack::hasMidiNoteNames ( )

◆ clearMidiNoteNames()

void tracktion::engine::AudioTrack::clearMidiNoteNames ( )

◆ loadMidiNoteNames()

void tracktion::engine::AudioTrack::loadMidiNoteNames ( const juce::String  namesFile)

◆ mergeInMidiSequence()

bool tracktion::engine::AudioTrack::mergeInMidiSequence ( const juce::MidiMessageSequence &  ,
TimePosition  startTime,
MidiClip ,
MidiList::NoteAutomationType   
)

try to add this MIDI sequence to any MIDI clips that are already in the track.

Returns
False if there's no existing clips in the places it needs them.

◆ playGuideNote()

void tracktion::engine::AudioTrack::playGuideNote ( int  note,
MidiChannel  midiChannel,
int  velocity,
bool  stopOtherFirst = true,
bool  forceNote = false,
bool  autorelease = false 
)

◆ playGuideNotes()

void tracktion::engine::AudioTrack::playGuideNotes ( const juce::Array< int > &  notes,
MidiChannel  midiChannel,
const juce::Array< int > &  velocities,
bool  stopOthersFirst = true 
)

◆ turnOffGuideNotes() [1/2]

void tracktion::engine::AudioTrack::turnOffGuideNotes ( )

Referenced by timerCallback().

◆ turnOffGuideNotes() [2/2]

void tracktion::engine::AudioTrack::turnOffGuideNotes ( MidiChannel  )

◆ addListener()

void tracktion::engine::AudioTrack::addListener ( Listener )

Adds a Listener.

This will automatically call Edit::restartPlayback for the callbacks to take effect.

◆ removeListener()

void tracktion::engine::AudioTrack::removeListener ( Listener )

Removes a Listener.

◆ getListeners()

juce::ListenerList<Listener>& tracktion::engine::AudioTrack::getListeners ( )

Returns the listener list so Nodes can manually call them.

◆ valueTreePropertyChanged()

void tracktion::engine::AudioTrack::valueTreePropertyChanged ( juce::ValueTree &  ,
const juce::Identifier &   
)
overrideprotected

◆ isTrackAudible()

bool tracktion::engine::AudioTrack::isTrackAudible ( bool  areAnyTracksSolo) const
overrideprotectedvirtual

Returns whether this Track should be audible.

Subclasses can override for custom behaviour.

Reimplemented from tracktion::engine::Track.

◆ timerCallback()

void tracktion::engine::AudioTrack::timerCallback ( )
overrideprotected

References turnOffGuideNotes().


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