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

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_ChordClip.h
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
14//==============================================================================
17class ChordClip : public Clip,
18 private juce::AsyncUpdater
19{
20public:
21 ChordClip (const juce::ValueTree&, EditItemID, ClipOwner& targetParent);
22 ~ChordClip() override;
23
25 bool canBeAddedTo (ClipOwner&) override;
26 juce::Colour getColour() const override;
27 juce::Colour getDefaultColour() const override;
28 void initialise() override;
29
30 bool isMidi() const override { return false; }
31 bool isMuted() const override { return false; }
32
34 void pitchTempoTrackChanged() override;
35
36protected:
37 void handleAsyncUpdate() override;
38
39 void valueTreePropertyChanged (juce::ValueTree&, const juce::Identifier&) override;
40 void valueTreeChildAdded (juce::ValueTree&, juce::ValueTree&) override;
41 void valueTreeChildRemoved (juce::ValueTree&, juce::ValueTree&, int) override;
42 void valueTreeParentChanged (juce::ValueTree&) override;
43
44private:
45
47};
48
49}} // namespace tracktion { inline namespace engine
bool isMidi() const override
Returns true if this is a MidiClip.
juce::Colour getColour() const override
Returns the colour property of this clip.
bool isMuted() const override
Returns true if the clip is muted.
void pitchTempoTrackChanged() override
Called when there are pitch or tempo changes made which might require clips to adjust timing informat...
juce::Colour getDefaultColour() const override
Returns the default colour for this clip.
bool canBeAddedTo(ClipOwner &) override
Tests whether this clip can go on the given parent.
juce::String getSelectableDescription() override
Subclasses must return a description of what they are.
void initialise() override
Initialises the Clip.
PatternGenerator * getPatternGenerator() override
Returns the PatternGenerator for this clip if it has one.
Base class for items that can contain clips.
A clip in an edit.
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
ID for objects of type EditElement - e.g.