JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::dsp::Compressor< SampleType > Class Template Reference

A simple compressor with standard threshold, ratio, attack time and release time controls. More...

#include "juce_Compressor.h"

Public Member Functions

 Compressor ()
 Constructor.
 
void setThreshold (SampleType newThreshold)
 Sets the threshold in dB of the compressor.
 
void setRatio (SampleType newRatio)
 Sets the ratio of the compressor (must be higher or equal to 1).
 
void setAttack (SampleType newAttack)
 Sets the attack time in milliseconds of the compressor.
 
void setRelease (SampleType newRelease)
 Sets the release time in milliseconds of the compressor.
 
void prepare (const ProcessSpec &spec)
 Initialises the processor.
 
void reset ()
 Resets the internal state variables of the processor.
 
template<typename ProcessContext >
void process (const ProcessContext &context) noexcept
 Processes the input and output samples supplied in the processing context.
 
SampleType processSample (int channel, SampleType inputValue)
 Performs the processing operation on a single sample at a time.
 

Detailed Description

template<typename SampleType>
class juce::dsp::Compressor< SampleType >

A simple compressor with standard threshold, ratio, attack time and release time controls.

@tags{DSP}

Definition at line 36 of file juce_Compressor.h.

Constructor & Destructor Documentation

◆ Compressor()

template<typename SampleType >
juce::dsp::Compressor< SampleType >::Compressor ( )

Constructor.

Definition at line 31 of file juce_Compressor.cpp.

Member Function Documentation

◆ prepare()

template<typename SampleType >
void juce::dsp::Compressor< SampleType >::prepare ( const ProcessSpec spec)

Initialises the processor.

Definition at line 69 of file juce_Compressor.cpp.

◆ process()

template<typename SampleType >
void juce::dsp::Compressor< SampleType >::process ( const ProcessContext context)
noexcept

Processes the input and output samples supplied in the processing context.

Definition at line 66 of file juce_Compressor.h.

◆ processSample()

template<typename SampleType >
SampleType juce::dsp::Compressor< SampleType >::processSample ( int  channel,
SampleType  inputValue 
)

Performs the processing operation on a single sample at a time.

Definition at line 90 of file juce_Compressor.cpp.

◆ reset()

template<typename SampleType >
void juce::dsp::Compressor< SampleType >::reset ( )

Resets the internal state variables of the processor.

Definition at line 83 of file juce_Compressor.cpp.

◆ setAttack()

template<typename SampleType >
void juce::dsp::Compressor< SampleType >::setAttack ( SampleType  newAttack)

Sets the attack time in milliseconds of the compressor.

Definition at line 54 of file juce_Compressor.cpp.

◆ setRatio()

template<typename SampleType >
void juce::dsp::Compressor< SampleType >::setRatio ( SampleType  newRatio)

Sets the ratio of the compressor (must be higher or equal to 1).

Definition at line 45 of file juce_Compressor.cpp.

◆ setRelease()

template<typename SampleType >
void juce::dsp::Compressor< SampleType >::setRelease ( SampleType  newRelease)

Sets the release time in milliseconds of the compressor.

Definition at line 61 of file juce_Compressor.cpp.

◆ setThreshold()

template<typename SampleType >
void juce::dsp::Compressor< SampleType >::setThreshold ( SampleType  newThreshold)

Sets the threshold in dB of the compressor.

Definition at line 38 of file juce_Compressor.cpp.


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