Vital
Loading...
Searching...
No Matches
random_lfo_module.h
Go to the documentation of this file.
1#pragma once
2
3#include "synth_module.h"
4
5namespace vital {
6
7 class RandomLfo;
8
17 public:
22 enum {
26 };
27
34 RandomLfoModule(const std::string& prefix, const Output* beats_per_second);
35
39 virtual ~RandomLfoModule() { }
40
46 void init() override;
47
53 virtual Processor* clone() const override { return new RandomLfoModule(*this); }
54
62 void correctToTime(double seconds) override;
63
64 protected:
65 std::string prefix_;
69 JUCE_LEAK_DETECTOR(RandomLfoModule)
70 };
71} // namespace vital
Base class for all signal-processing units in Vital.
Definition processor.h:212
A Low-Frequency Oscillator (LFO) that generates random modulation signals.
Definition random_lfo.h:16
A module that produces random low-frequency oscillations (LFOs) for modulation purposes.
Definition random_lfo_module.h:16
const Output * beats_per_second_
Definition random_lfo_module.h:67
virtual Processor * clone() const override
Creates a new RandomLfoModule identical to this one.
Definition random_lfo_module.h:53
RandomLfoModule(const std::string &prefix, const Output *beats_per_second)
Constructs a RandomLfoModule with a given prefix and a beats-per-second reference.
Definition random_lfo_module.cpp:12
RandomLfo * lfo_
Definition random_lfo_module.h:66
void correctToTime(double seconds) override
Adjusts the LFO to a given time position.
Definition random_lfo_module.cpp:47
std::string prefix_
Definition random_lfo_module.h:65
void init() override
Initializes the RandomLfoModule by creating and connecting control parameters to the internal RandomL...
Definition random_lfo_module.cpp:27
@ kNoteTrigger
Definition random_lfo_module.h:23
@ kMidi
Definition random_lfo_module.h:24
@ kNumInputs
Definition random_lfo_module.h:25
virtual ~RandomLfoModule()
Destructor.
Definition random_lfo_module.h:39
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
Defines the SynthModule class which extends ProcessorRouter to form a building block of the Vital syn...