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

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_PitchShift.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:
19 ~PitchShiftPlugin() override;
20
21 static const char* getPluginName() { return NEEDS_TRANS("Pitch Shifter"); }
22 static juce::ValueTree create();
23
24 //==============================================================================
25 static const char* xmlTypeName;
26
27 juce::String getName() const override { return TRANS("Pitch Shifter"); }
28 juce::String getPluginType() override { return xmlTypeName; }
29 juce::String getShortName (int) override { return TRANS("Pitch"); }
30 bool needsConstantBufferSize() override { return false; }
31
32 void initialise (const PluginInitialisationInfo&) override;
33 void deinitialise() override;
34 double getLatencySeconds() override;
35 int getNumOutputChannelsGivenInputs (int numInputChannels) override { return juce::jmin (numInputChannels, 2); }
36 void applyToBuffer (const PluginRenderContext&) override;
38 void restorePluginStateFromValueTree (const juce::ValueTree&) override;
39
40 juce::CachedValue<float> semitonesValue;
44
45 static float getMaximumSemitones() { return 2.0f * 12.0f; }
46
47private:
48 struct Pimpl;
50
52};
53
54}} // namespace tracktion { inline namespace engine
The Tracktion Edit class!
int getNumOutputChannelsGivenInputs(int numInputChannels) override
This must return the number of output channels that the plugin will produce, given a number of input ...
void initialise(const PluginInitialisationInfo &) override
Gives the plugin a chance to set itself up before being played.
void applyToBuffer(const PluginRenderContext &) override
Process the next block of data.
juce::String getSelectableDescription() override
Subclasses must return a description of what they are.
juce::String getName() const override
The name of the type, e.g.
void deinitialise() override
Called after play stops to release resources.
#define TRANS(stringLiteral)
#define NEEDS_TRANS(stringLiteral)
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
constexpr Type jmin(Type a, Type b)
The context passed to plugin render methods to provide it with buffers to fill.