Vital
Loading...
Searching...
No Matches
compressor_module.h
Go to the documentation of this file.
1#pragma once
2
3#include "synth_constants.h"
4#include "synth_module.h"
5
6namespace vital {
7
8 class MultibandCompressor;
9
19 public:
31 enum {
40 };
41
46
50 virtual ~CompressorModule();
51
57 virtual void init() override;
58
64 virtual void setSampleRate(int sample_rate) override;
65
72 virtual void processWithInput(const poly_float* audio_in, int num_samples) override;
73
81 virtual void enable(bool enable) override;
82
86 virtual void hardReset() override;
87
93 virtual Processor* clone() const override { return new CompressorModule(*this); }
94
95 protected:
97
98 JUCE_LEAK_DETECTOR(CompressorModule)
99 };
100} // namespace vital
A multiband compressor module that splits the input signal into multiple bands, applies compression t...
Definition compressor_module.h:18
@ kAudio
Definition compressor_module.h:32
@ kLowOutputMeanSquared
Definition compressor_module.h:36
@ kLowInputMeanSquared
Definition compressor_module.h:33
@ kBandOutputMeanSquared
Definition compressor_module.h:37
@ kHighOutputMeanSquared
Definition compressor_module.h:38
@ kBandInputMeanSquared
Definition compressor_module.h:34
@ kHighInputMeanSquared
Definition compressor_module.h:35
@ kNumOutputs
Definition compressor_module.h:39
virtual Processor * clone() const override
Creates a clone of this CompressorModule with the same configuration.
Definition compressor_module.h:93
MultibandCompressor * compressor_
The internal multiband compressor processor.
Definition compressor_module.h:96
virtual void hardReset() override
Performs a hard reset of the compressor, clearing buffers and resetting all states.
Definition compressor_module.cpp:109
virtual void processWithInput(const poly_float *audio_in, int num_samples) override
Processes a block of samples through the compressor with the given input.
Definition compressor_module.cpp:89
virtual ~CompressorModule()
Destroys the CompressorModule and releases its resources.
Definition compressor_module.cpp:8
virtual void enable(bool enable) override
Enables or disables the compressor module.
Definition compressor_module.cpp:100
virtual void init() override
Initializes the compressor module and sets up internal parameters and controls.
Definition compressor_module.cpp:12
CompressorModule()
Constructs a CompressorModule, initializing outputs and internal variables.
Definition compressor_module.cpp:6
virtual void setSampleRate(int sample_rate) override
Sets the sample rate for the compressor to ensure time-based parameters (attack, release) are correct...
Definition compressor_module.cpp:80
A Processor implementing multiband compression using multiple Compressor instances.
Definition compressor.h:182
Base class for all signal-processing units in Vital.
Definition processor.h:212
A ProcessorRouter that encapsulates a cohesive unit of functionality in the synthesizer.
Definition synth_module.h:129
Contains classes and functions used within the Vital synthesizer framework.
Represents a vector of floating-point values using SIMD instructions.
Definition poly_values.h:600
Defines the SynthModule class which extends ProcessorRouter to form a building block of the Vital syn...