|
| template<typename DerivedDSP , typename = typename std::enable_if< ! std::is_lvalue_reference<DerivedDSP>::value && std::is_base_of< DSPBase<SampleType>, typename std::decay<DerivedDSP>::type >::value >::type> |
| DerivedSignal & | followedBy (DerivedDSP &&dsp) & |
| | Adds a DSP effect to the end of signal's DSP chain.
|
| |
| template<typename DerivedDSP , typename = typename std::enable_if< ! std::is_lvalue_reference<DerivedDSP>::value && std::is_base_of< DSPBase<SampleType>, typename std::decay<DerivedDSP>::type >::value >::type> |
| DerivedSignal && | followedBy (DerivedDSP &&dsp) && |
| | Adds a DSP effect to the end of signal's DSP chain.
|
| |
| DerivedSignal & | followedBy (std::unique_ptr< DSPBase< SampleType > > dsp) & |
| | Adds a DSP effect to the end of signal's DSP chain.
|
| |
| DerivedSignal && | followedBy (std::unique_ptr< DSPBase< SampleType > > dsp) && |
| | Adds a DSP effect to the end of signal's DSP chain.
|
| |
| std::unique_ptr< SignalBase< SampleType > > | copy () const override |
| | Returns a smart pointer with a copy of this object.
|
| |
| std::unique_ptr< SignalBase< SampleType > > | move () override |
| | Returns a smart pointer with a moved instance of this object.
|
| |
| DerivedSignal & | skipTo (double startTimestampSeconds) & |
| | Skips the signal to a specific timestamp.
|
| |
| DerivedSignal && | skipTo (double startTimestampSeconds) && |
| | Skips the signal to a specific timestamp.
|
| |
| DerivedSignal | operator- () const |
| | Returns a copy of this signal, but with flipped phase.
|
| |
| DerivedSignal | operator~ () const |
| | Returns a copy of this signal, but with flipped phase.
|
| |
| | SignalBase ()=default |
| | Default constructor.
|
| |
| | SignalBase (const SignalBase &other) |
| | Copies other signal.
|
| |
| | SignalBase (SignalBase &&other) noexcept |
| | Moves from other signal.
|
| |
| virtual | ~SignalBase ()=default |
| | Destructor.
|
| |
| SignalBase & | operator= (const SignalBase &other) |
| | Copies from other signal.
|
| |
| SignalBase & | operator= (SignalBase &&other) noexcept |
| | Moves from other signal.
|
| |
| virtual bool | supportsNumChannels (size_t) const |
| | Tells the host whether this Signal is capable of generating audio for a certain amount of channels.
|
| |
| virtual bool | supportsSampleRate (double) const |
| | Tells whether this Signal supports given sample rate.
|
| |
| virtual void | prepare (double sampleRateHz, size_t numOutputChannels, size_t maxBlockSizeFrames)=0 |
| | Prepare the signal for rendering.
|
| |
| virtual void | renderNextBlock (AudioBuffer< SampleType > &output)=0 |
| | Renders next block audio for the signal.
|
| |
| virtual void | reset ()=0 |
| | Resets the Signal to initial state.
|
| |
| virtual void | represent (std::ostream &stream) const =0 |
| | Makes a text representation of this Signal for test failure outputs.
|
| |
| void | prepareWithDSPChain (double sampleRateHz, size_t numOutputChannels, size_t maxBlockSizeFrames) |
| | Prepares the signal and all attached effects in the DSP chain for rendering.
|
| |
| void | renderNextBlockWithDSPChain (AudioBuffer< SampleType > &output) |
| | Renders next block audio for the signal and all the effects in the DSP chain.
|
| |
| virtual void | resetWithDSPChain () |
| | Resets to Signal and all the effects attached to its DSP chain to initial state.
|
| |
| size_t | getDSPChainSize () const |
| | Returns the size of the DSP chain attached to the Signal.
|
| |
| DSPBase< SampleType > * | getDSP (int index=-1) const |
| | Access a specific element in the DSP chain.
|
| |
| std::unique_ptr< DSPBase< SampleType > > | popDSP (int index=-1) |
| | Extract a specific element in the DSP chain by removing it.
|
| |
|
(Note that these are not member symbols.)
|
| template<typename SampleType , typename DerivedSignalTypeLHS , typename DerivedSignalTypeRHS > |
| MixedSignal< SampleType > | operator+ (const Signal< SampleType, DerivedSignalTypeLHS > &lhs, const Signal< SampleType, DerivedSignalTypeRHS > &rhs) |
| | Adds one signal to another, resulting in a new mixed signal.
|
| |
| template<typename SampleType , typename DerivedSignalTypeLHS , typename DerivedSignalTypeRHS > |
| MixedSignal< SampleType > | operator- (const Signal< SampleType, DerivedSignalTypeLHS > &lhs, const Signal< SampleType, DerivedSignalTypeRHS > &rhs) |
| | Subtracts one signal from another, resulting in a new mixed signal.
|
| |
| template<typename SampleType > |
| std::ostream & | operator<< (std::ostream &stream, const SignalBase< SampleType > &signal) |
| | Prints readable text representation of the Signal object into the I/O stream.
|
| |
| template<typename DerivedSignal , typename DerivedDSP > |
| auto | operator>> (DerivedSignal &signal, DerivedDSP &&dsp) -> decltype(signal.followedBy(std::forward< DerivedDSP >(dsp))) |
| | Adds a DSP effect to the end of signal's DSP chain by transfering it.
|
| |
| template<typename DerivedSignal , typename DerivedDSP > |
| auto | operator>> (DerivedSignal &&signal, DerivedDSP &&dsp) -> decltype(std::move(signal).followedBy(std::forward< DerivedDSP >(dsp))) |
| | Adds a DSP effect to the end of signal's DSP chain by transfering it.
|
| |
Base class for signals.
- Template Parameters
-
| SampleType | Type of values that will be generated, typically float or double |
| DerivedSignal | Subclass for CRTP |
Definition at line 348 of file hart_signal.hpp.