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

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_MidiModifier.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
15{
16public:
18 ~MidiModifierPlugin() override;
19
20 //==============================================================================
21 juce::CachedValue<float> semitonesValue;
23
24 //==============================================================================
25 static float getMaximumSemitones() { return 3.0f * 12.0f; }
26
27 static const char* getPluginName() { return NEEDS_TRANS("MIDI Modifier"); }
28 static const char* xmlTypeName;
29
30 juce::String getName() const override;
31 juce::String getPluginType() override;
32 juce::String getShortName (int) override;
33 void initialise (const PluginInitialisationInfo&) override;
34 void deinitialise() override;
35 double getLatencySeconds() override;
36 int getNumOutputChannelsGivenInputs (int) override;
37 void getChannelNames (juce::StringArray*, juce::StringArray*) override;
38 bool takesAudioInput() override;
39 bool canBeAddedToClip() override;
40 bool needsConstantBufferSize() override;
41
42 void applyToBuffer (const PluginRenderContext&) override;
43
45
46 void restorePluginStateFromValueTree (const juce::ValueTree&) override;
47
48private:
50};
51
52}} // namespace tracktion { inline namespace engine
int getNumOutputChannelsGivenInputs(int) override
This must return the number of output channels that the plugin will produce, given a number of input ...
void applyToBuffer(const PluginRenderContext &) override
Process the next block of data.
void deinitialise() override
Called after play stops to release resources.
juce::String getName() const override
The name of the type, e.g.
juce::String getSelectableDescription() override
Subclasses must return a description of what they are.
void initialise(const PluginInitialisationInfo &) override
Gives the plugin a chance to set itself up before being played.
#define NEEDS_TRANS(stringLiteral)
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
Passed into Plugins when they are being initialised, to give them useful contextual information that ...
The context passed to plugin render methods to provide it with buffers to fill.