eDSP  0.0.1
A cross-platform DSP library written in C++.
Classes | Enumerations | Functions
edsp::oscillators Namespace Reference

Classes

class  oscillator
 The oscillator class generates a periodic signal. More...
 
class  sawtooth_oscillator
 The class sawtooth_oscillator generates a sawtooth signal. More...
 
class  sin_oscillator
 The class sin_oscillator generates a sinusoidal signal. More...
 
class  square_oscillator
 The class square_oscillator generates a square signal. More...
 
class  triangular_oscillator
 The class triangular_oscillator generates a triangular signal. More...
 

Enumerations

enum  OscillatorType { OscillatorType::Sinusoidal, OscillatorType::Square, OscillatorType::Sawtooth, OscillatorType::Triangular }
 the OscillatorType enum represents the different waveforms generated by tha available oscillators. More...
 

Functions

template<typename T , OscillatorType Type, typename... Args>
constexpr auto make_oscillator (Args... arg) noexcept -> decltype(internal::_build_Generator< Type, T >
 Creates an oscillator using args as the parameter list for the construction. More...
 
template build (std::declval< Args &&>()...))
 

Enumeration Type Documentation

◆ OscillatorType

the OscillatorType enum represents the different waveforms generated by tha available oscillators.

Enumerator
Sinusoidal 
Square 
Sawtooth 
Triangular 

Function Documentation

◆ build()

template edsp::oscillators::build ( std::declval< Args &&>()  ...)

◆ make_oscillator()

template<typename T , OscillatorType Type, typename... Args>
constexpr auto edsp::oscillators::make_oscillator ( Args...  arg) -> decltype(internal::_build_Generator<Type, T>
noexcept

Creates an oscillator using args as the parameter list for the construction.

Template Parameters
TValue type
TypeTypes of oscillator: sinusoidal, triangle, sawtooth or square.
Parameters
argArguments parameters to constructs the oscillator.
Returns
An oscillator with the given configuration.
See also
OscillatorType