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

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_AutomationTrack.cpp
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9*/
10
11namespace tracktion { inline namespace engine
12{
13
14AutomationTrack::AutomationTrack (Edit& e, const juce::ValueTree& v)
15 : Track (e, v, false)
16{
17}
18
19AutomationTrack::~AutomationTrack()
20{
21 notifyListenersOfDeletion();
22}
23
24//==============================================================================
25juce::String AutomationTrack::getSelectableDescription()
26{
27 auto n = getName();
28 return TRANS("Automation") + (n.isEmpty() ? juce::String() : " - \"" + getName() + "\"");
29}
30
31juce::String AutomationTrack::getName() const
32{
33 if (auto ap = getCurrentlyShownAutoParam())
34 return ap->getFullName();
35
36 return {};
37}
38
39}} // namespace tracktion { inline namespace engine
#define TRANS(stringLiteral)
juce::String getName(LaunchQType t)
Retuns the name of a LaunchQType for display purposes.