Vital
Loading...
Searching...
No Matches
phaser_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 Phaser;
9
18 class PhaserModule : public SynthModule {
19 public:
24 enum {
28 };
29
35 PhaserModule(const Output* beats_per_second);
36
40 virtual ~PhaserModule();
41
47 void init() override;
48
54 void hardReset() override;
55
63 void enable(bool enable) override;
64
73 void correctToTime(double seconds) override;
74
82 void setSampleRate(int sample_rate) override;
83
90 void processWithInput(const poly_float* audio_in, int num_samples) override;
91
97 Processor* clone() const override { return new PhaserModule(*this); }
98
99 protected:
103 JUCE_LEAK_DETECTOR(PhaserModule)
104 };
105} // namespace vital
A multi-stage phaser effect that modulates filter cutoff with a low-frequency oscillator.
Definition phaser.h:19
A module that provides a phaser effect for audio signals.
Definition phaser_module.h:18
void hardReset() override
Performs a hard reset of the phaser's internal state.
Definition phaser_module.cpp:67
void enable(bool enable) override
Enables or disables the phaser module.
Definition phaser_module.cpp:78
@ kCutoffOutput
Definition phaser_module.h:26
@ kAudioOutput
Definition phaser_module.h:25
@ kNumOutputs
Definition phaser_module.h:27
void setSampleRate(int sample_rate) override
Sets the sample rate for the module.
Definition phaser_module.cpp:104
void init() override
Initializes the phaser module by creating and connecting parameters to the Phaser processor.
Definition phaser_module.cpp:26
const Output * beats_per_second_
Definition phaser_module.h:100
void processWithInput(const poly_float *audio_in, int num_samples) override
Processes the input audio buffer through the phaser effect.
Definition phaser_module.cpp:117
PhaserModule(const Output *beats_per_second)
Constructs a PhaserModule.
Definition phaser_module.cpp:11
virtual ~PhaserModule()
Destructor.
Definition phaser_module.cpp:18
Phaser * phaser_
Definition phaser_module.h:101
void correctToTime(double seconds) override
Adjusts the phaser to a given time position.
Definition phaser_module.cpp:92
Processor * clone() const override
Creates a clone of this PhaserModule.
Definition phaser_module.h:97
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.
Holds and manages a buffer of samples (poly_float) for a Processor's output.
Definition processor.h:35
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...