Klang C++
Language Reference (draft)
|
Audio oscillator object (output) More...
#include <klang.h>
Public Member Functions | |
virtual | ~Oscillator () |
virtual void | reset () |
virtual void | set (param frequency) |
virtual void | set (param frequency, param phase) |
virtual void | set (param frequency, relative phase) |
virtual void | set (relative phase) |
template<typename... params> | |
Output< SIGNAL > & | operator() (params... p) |
operator const SIGNAL & () override | |
operator const SIGNAL & () const override | |
virtual const SIGNAL & | output () const |
template<typename TYPE > | |
TYPE & | operator>> (TYPE &destination) |
template<typename TYPE > | |
SIGNAL | operator+ (TYPE &other) |
template<typename TYPE > | |
SIGNAL | operator* (TYPE &other) |
template<typename TYPE > | |
SIGNAL | operator- (TYPE &other) |
template<typename TYPE > | |
SIGNAL | operator/ (TYPE &other) |
Public Attributes | |
Frequency | frequency = 1000.f |
Phase | offset = 0 |
SIGNAL | out = { 0.f } |
Protected Attributes | |
Phase | increment |
Phase | position = 0 |
|
inlinevirtual |
|
inlineoverridevirtualinherited |
|
inlineoverridevirtualinherited |
Reimplemented from klang::Generic::Output< SIGNAL >.
Definition at line 1415 of file klang.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 1364 of file klang.h.
References klang::Generic::Output< SIGNAL >::out, and klang::Generic::Output< SIGNAL >::process().
|
inlinevirtualinherited |
|
protectedpure virtualinherited |
Implemented in klang::Delay< SIZE >, klang::Effect, klang::Envelope::Follower::AR, klang::Envelope::Follower, klang::Envelope::Follower::Window< WINDOW >, klang::Envelope, klang::Envelope::Ramp, klang::Filters::Biquad::Filter, klang::Filters::Butterworth::LPF, klang::Filters::IIR, klang::Filters::OnePole::Filter, klang::Filters::OnePole::LPF, klang::Generators::Basic::Noise, klang::Generators::Basic::Pulse, klang::Generators::Basic::Saw, klang::Generators::Basic::Sine, klang::Generators::Basic::Square, klang::Generators::Basic::Triangle, klang::Generators::Fast::Noise, klang::Generators::Fast::Sine, klang::Generic::Function< SIGNAL, Args >, klang::Generic::Function< signal, Args... >, klang::Generic::Modifier< SIGNAL >, klang::Generic::Modifier< signal >, klang::Note, klang::Stereo::Effect, klang::Stereo::Note, and klang::Wavetable.
Referenced by klang::Generic::Output< SIGNAL >::operator const SIGNAL &(), and klang::Generic::Output< SIGNAL >::operator>>().
|
inlinevirtual |
Reimplemented in klang::Generators::Fast::Sine.
Definition at line 1957 of file klang.h.
References klang::Generic::Oscillator< SIGNAL >::position.
|
inlinevirtual |
Reimplemented in klang::Generators::Fast::Sine, and klang::Wavetable.
Definition at line 1960 of file klang.h.
References klang::constant::f, klang::Generic::Oscillator< SIGNAL >::frequency, klang::Generic::Oscillator< SIGNAL >::increment, klang::signal::operator*(), klang::signal::operator/(), and klang::pi.
|
inlinevirtual |
Reimplemented in klang::Generators::Fast::Sine, and klang::Wavetable.
Definition at line 1965 of file klang.h.
References klang::Generic::Oscillator< SIGNAL >::position.
Referenced by klang::Generators::Basic::Pulse::set().
|
inlinevirtual |
Reimplemented in klang::Generators::Fast::Sine, and klang::Wavetable.
|
inlinevirtual |
Reimplemented in klang::Generators::Fast::Sine, and klang::Wavetable.
Definition at line 1975 of file klang.h.
References klang::Generic::Oscillator< SIGNAL >::offset, klang::signal::operator*(), and klang::pi.
Frequency klang::Generic::Oscillator< SIGNAL >::frequency = 1000.f |
Definition at line 1953 of file klang.h.
Referenced by klang::Generic::Oscillator< SIGNAL >::set().
|
protected |
Definition at line 1950 of file klang.h.
Referenced by klang::Generic::Oscillator< SIGNAL >::set().
Phase klang::Generic::Oscillator< SIGNAL >::offset = 0 |
Definition at line 1954 of file klang.h.
Referenced by klang::Generic::Oscillator< SIGNAL >::set().
|
inherited |
Definition at line 1357 of file klang.h.
Referenced by klang::Generic::Output< SIGNAL >::operator const SIGNAL &(), klang::Generic::Output< SIGNAL >::operator const SIGNAL &(), klang::Generic::Output< SIGNAL >::operator>>(), and klang::Generic::Output< SIGNAL >::output().
|
protected |
Definition at line 1951 of file klang.h.
Referenced by klang::Generic::Oscillator< SIGNAL >::reset(), and klang::Generic::Oscillator< SIGNAL >::set().