Klang C++
Language Reference (draft)
|
Wavetable-based oscillator. More...
#include <klang.h>
Public Member Functions | |
Wavetable (int size=2048) | |
template<typename TYPE > | |
Wavetable (TYPE oscillator, int size=2048) | |
signal & | operator[] (int index) |
template<typename TYPE > | |
Wavetable & | operator= (TYPE &oscillator) |
virtual void | set (param frequency) override |
virtual void | set (param frequency, param phase) override |
virtual void | set (relative phase) override |
virtual void | set (param frequency, relative phase) override |
void | process () override |
virtual void | reset () |
Output< signal > & | operator() (params... p) |
operator const signal & () override | |
operator const signal & () const override | |
virtual const signal & | output () const |
TYPE & | operator>> (TYPE &destination) |
signal | operator+ (TYPE &other) |
signal | operator* (TYPE &other) |
signal | operator- (TYPE &other) |
signal | operator/ (TYPE &other) |
Public Attributes | |
Frequency | frequency |
Phase | offset |
signal | out |
Protected Attributes | |
buffer | buffer |
const int | size |
Phase | increment |
Phase | position |
|
inline |
|
inline |
Definition at line 2566 of file klang.h.
References klang::buffer::buffer(), and size.
Referenced by klang::Generators::Wavetables::Saw::Saw(), and klang::Generators::Wavetables::Sine::Sine().
|
inlineoverridevirtualinherited |
|
inlineoverridevirtualinherited |
Reimplemented from klang::Generic::Output< signal >.
Definition at line 1415 of file klang.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inline |
Definition at line 2570 of file klang.h.
References klang::buffer::operator[]().
|
inlinevirtualinherited |
|
inlineoverridevirtual |
Implements klang::Generic::Output< signal >.
Definition at line 2602 of file klang.h.
References klang::increment::increment(), klang::Phase::operator+=(), klang::buffer::operator[](), and size.
|
inlinevirtualinherited |
Reimplemented in klang::Generators::Fast::Sine.
Definition at line 1957 of file klang.h.
|
inlineoverridevirtual |
Reimplemented from klang::Generic::Oscillator< signal >.
Definition at line 2582 of file klang.h.
References klang::signal::operator*(), and size.
Reimplemented from klang::Generic::Oscillator< signal >.
Definition at line 2587 of file klang.h.
References klang::signal::operator*(), set(), and size.
|
inlineoverridevirtual |
Reimplemented from klang::Generic::Oscillator< signal >.
Definition at line 2592 of file klang.h.
References klang::signal::operator*(), and size.
Referenced by set().
|
inherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protected |
Definition at line 2561 of file klang.h.
Referenced by Wavetable(), Wavetable(), operator=(), process(), set(), set(), and set().