|
HART
0.1.0
High level Audio Regression and Testing
|
Generate signals. More...
Classes | |
| class | Signal< SampleType > |
| Base class for signals. More... | |
| class | Silence< SampleType > |
| Produces silence (zeros) More... | |
| class | SineSweep< SampleType > |
| Produces a sine sweep. More... | |
| class | SineWave< SampleType > |
| Produces a sine wave at fixed frequency. More... | |
| class | WavFile< SampleType > |
| Produces audio from a wav file. More... | |
| class | WhiteNoise< SampleType > |
| Produces deterministic white noise. More... | |
Macros | |
| #define | HART_SIGNAL_DEFINE_COPY_AND_MOVE(ClassName) |
| Defines hart::Signal::copy() and hart::Signal::move() methods. | |
| #define | HART_SIGNAL_FORBID_COPY_AND_MOVE |
| Forbids hart::Signal::copy() and hart::Signal::move() methods. | |
Functions | |
| template<typename SampleType > | |
| std::ostream & | operator<< (std::ostream &stream, const Signal< SampleType > &signal) |
| Prints readable text representation of the Signal object into the I/O stream. | |
| template<typename SampleType , typename DerivedDSP , typename std::enable_if< std::is_base_of< DSP< SampleType >, typename std::decay< DerivedDSP >::type >::value >::type > | |
| Signal< SampleType > & | operator>> (Signal< SampleType > &signal, DerivedDSP &&dsp) |
| Adds a DSP effect to the end of signal's DSP chain by moving it. | |
| template<typename SampleType > | |
| Signal< SampleType > & | operator>> (Signal< SampleType > &signal, const DSP< SampleType > &dsp) |
| Adds a DSP effect to the end of signal's DSP chain by copying it. | |
| template<typename SampleType > | |
| Signal< SampleType > && | operator>> (Signal< SampleType > &&signal, const DSP< SampleType > &dsp) |
| Adds a DSP effect to the end of signal's DSP chain by copying it. | |
| template<typename SampleType > | |
| Signal< SampleType > & | operator>> (Signal< SampleType > &signal, std::unique_ptr< DSP< SampleType > > dsp) |
| Adds a DSP effect to the end of signal's DSP chain by transfering it. | |
| template<typename SampleType > | |
| Signal< SampleType > && | operator>> (Signal< SampleType > &&signal, std::unique_ptr< DSP< SampleType > > dsp) |
| Adds a DSP effect to the end of signal's DSP chain by transfering it. | |
Generate signals.
| #define HART_SIGNAL_DEFINE_COPY_AND_MOVE | ( | ClassName | ) |
Defines hart::Signal::copy() and hart::Signal::move() methods.
Put this into your class body's public section if either is true:
If neither of those is true, or you're unsure, use HART_SIGNAL_FORBID_COPY_AND_MOVE instead
Despite returning a smart pointer to an abstract Signal class, those two methods must construct an object of a specific class, hence the mandatory boilerplate methods - sorry!
| ClassName | Name of your class |
Definition at line 346 of file hart_signal.hpp.
| #define HART_SIGNAL_FORBID_COPY_AND_MOVE |
Forbids hart::Signal::copy() and hart::Signal::move() methods.
Put this into your class body's public section if either is true:
Otherwise, use HART_SIGNAL_DEFINE_COPY_AND_MOVE() instead. Obviously, you won't be able to pass your class to the host by reference, copy or explicit move, but you still can pass it wrapped into a smart pointer like so:
Definition at line 370 of file hart_signal.hpp.
|
related |
Prints readable text representation of the Signal object into the I/O stream.
Definition at line 278 of file hart_signal.hpp.
|
related |
Adds a DSP effect to the end of signal's DSP chain by moving it.
Definition at line 289 of file hart_signal.hpp.
|
related |
Adds a DSP effect to the end of signal's DSP chain by copying it.
Definition at line 298 of file hart_signal.hpp.
|
related |
Adds a DSP effect to the end of signal's DSP chain by copying it.
Definition at line 307 of file hart_signal.hpp.
|
related |
Adds a DSP effect to the end of signal's DSP chain by transfering it.
Definition at line 316 of file hart_signal.hpp.
|
related |
Adds a DSP effect to the end of signal's DSP chain by transfering it.
Definition at line 326 of file hart_signal.hpp.